Community
Participate
Working Groups
Created attachment 197949 [details] Patch Here are some fixes that align the new compiler problem messages with the existing ones. In the first 2 messages, the "s" at the end of "greater or equals" is wrong. I think "source level 1.7 or greater" is easier to understand. That formulation is also used in the JavaCore class' Javadocs. Some older messages use "... are only available if source level is 1.5". These could also be changed to "1.5 or greater".
Ayush, please follow up - Thanks.
Created attachment 198022 [details] complete patch
Released in BETA_JAVA7 branch.
Ayush, you seem to have missed out the 1.5 related messages.
Oops. I'll change them
Created attachment 198707 [details] patch for 1.5 warnings
Released. Updated messages are 590 = Syntax error, type parameters are only available if source level is 1.5 or greater 591 = Syntax error, static imports are only available if source level is 1.5 or greater 592 = Syntax error, 'for each' statements are only available if source level is 1.5 or greater 593 = Syntax error, parameterized types are only available if source level is 1.5 or greater 594 = Syntax error, enum declarations are only available if source level is 1.5 or greater 595 = Syntax error, varargs are only available if source level is 1.5 or greater 596 = Syntax error, annotations are only available if source level is 1.5 or greater 597 = Syntax error, annotation declarations are only available if source level is 1.5 or greater
Verified.