A third vote on language changes has just completed, this time it was online. I'll summarise the results from the three votes in this post.
Three votes
The three votes in question were:
At Devoxx, the topics voted on were:
- Properties
- Multi-catch of exceptions
- Null handling
- List/Map access using []
- Extension methods
- Method pointers
- Multi line strings
- Infer generics on the RHS
At JavaEdge and Online the features voted on were:
- For-each loop over a Map
- Control over for-each loops (index/remove)
- List/Map access using []
- Infer generics on the RHS
- Multi-catch of exceptions
- String switch
- String interpolation
- Multi line strings
- Resource management
- Null handling
The later polls excluded properties as they are specifically excluded for Java 7. They also excluded extension methods and method pointers as these were the least popular options at Devoxx.
Here are the first preference votes for Devoxx, JavaEdge (ranked), JavaEdge, (not-ranked) and Online:
Considering the first to fourth preference votes (first at the bottom in dark green):
Totals
Unfortunately, we can't add the Devoxx figures directly to the rest as the data is incomplete. However, it is useful to add all JavaEdge and Online votes together:
So, what do these results tell us? As always, absolute answers are difficult, because not all voters followed the same rules (online voters clearly didn't rank properly), and Devoxx was asked a different question. However, some things can be established, based not only on total votes but also how the preferences went from 1 to 10.
- Devoxx voters favoured Infer-generics, Multi-catch and Null-handling.
- JavaEdge voters favoured Null-handling, String-switch and Multi-catch.
- Online voters favoured Multi-catch, Null-handling, Infer-generics and String-switch.
So, these four options polled consistently highly in each of the different votes (except Infer-generics which did badly at JavaEdge). This now lends quite significant weight to the question of 'what does the community want' and 'what pain points need addressing'. The small language changes for Java 7 project now has some solid data to work from.
My take is that Multi-catch looks like a strong favourite for inclusion, as does String-switch. Infer-generics had a slightly more mixed reception in JavaEdge, but is popular elsewhere.
The big question is over Null-handling. Three separate votes has ranked it highly, with it taking the highest number of first preference votes in three of the four measured graphs above. There is a clear desire for change and a clear proposal. I hope the opportunity is not missed.
Summary
As more votes stack up, the statistics become more secure. We can now say that out of the ten polled items, the top four are Null-handling, Multi-catch, String-switch and Infer-generics.
Any feedback or thoughts are welcome!