Proposed refactoring: introduce JLS7 language features to core libs
Stefan Reich
sreich at mac.com
Wed Apr 25 19:07:49 UTC 2012
Hello,
is there any interest to accept change sets based on OpenJDK 7 that update the java classes in jdk/src/share/classes to use
* multi-catch
* string switch statements as opposed to nested if statements when comparing strings with string literals
* type inference by removing duplicative type information in the constructor when using generics
* indexOf(int) when indexOf(String) is used with a String literal that contains only one character, and similar small-scale improvements?
The proposed change sets would pass all jtreg tests. If there is interest, what would be next steps?
Regards,
Stefan Reich
More information about the core-libs-dev
mailing list