A while back we joined the JSF 2.3 EG as zeef.com. While we had contributed as individuals before (mostly via code suggestions and snippets in JIRA issues) we are proud that today our first more direct contribution was committed to Mojarra for the ongoing JSF 2.3 effort.
Co-spec lead Manfred Riem tweeted about this earlier today:
And the JCP process in action! Thank to Arjan Tijms for his recent #JSF 2.3 contribution! Generic injection of the applicationMap. Enjoy!
— Manfred Riem (@mnriem) January 27, 2015
The commit in question can be seen in our GitHub mirror. To summarize the change; before it was only possible to inject the application map as follows:
@Inject @ApplicationMap Map applicationMap;
As can be seen, the map is missing its generic parameters. This is of course far from ideal. With the latest patch, this map can now be injected as it should be:
@Inject @ApplicationMap Map<String, Object> applicationMap;
Injection into a raw map is still supported, but for most cases the generic variant should be preferred.
It’s a fairly small change, but hopefully many more of such changes will follow soon 😉