Community
Participate
Working Groups
I20080122-1600 From a discussion in the JDT call, it appears that "5.0" should be used to talk about J2SE only. At the compiler level, "1.5" should be used. Compiler messages need to be changed.
Created attachment 87657 [details] Patch provided by Daniel Megert Compiler tests will need to be changed accordingly.
Are there no occurrence of 6.0 either ?
Surprisingly no compiler tests failed after applying this patch. Maxime can you please add the corresponding tests and release Dani's patch at the same time ?
I'll do. I'll also double-check whether we have 6.0 (and 7.0) literals or not. BTW, would not this imply that the batch compiler command line be aligned? While simply getting rid of 5.0 (and 6.0 and 7.0) as a possible level value in options might be too harsh, we could deprecate it and remove it from the options documentation. Or we could else leave this unchanged, the rationale being that 5, 5.0, 6, 6.0, 7, 7.0 are input convenience aliases that imply no strong relationship to the language level official denomination. (The use of 5, 6 and 7 clearly belong to a 'let's use non-standard but intuitive values' approach.) I would personally vote for keeping the batch options unchanged, but if anyone feels this is wrong, pls open a separate bug.
>BTW, would not this imply that the batch compiler command line be aligned? >While simply getting rid of 5.0 (and 6.0 and 7.0) as a possible level value in >options might be too harsh, we could deprecate No, they should stay as is because they are officially allowed/available as alias.
>Surprisingly no compiler tests failed after applying this patch. Lucky me ;-)
Can you commit the patch for M5 so that the JDT Core messages are consistent with the other places in the UI side? Thanks.
Yes, M5 is the target (my mistake).
Created attachment 88387 [details] Dani's patch (unchanged), plus tests.
Released for 3.4M5.
Notes: I checked that I could not find any unexplained 5.0, 50, 6.0 or 60 string in the sources. I also hunted copyrights and aligned them.
Verified for 3.4M5 using build I20080204-0010