betelgeuse@pena ~/test/java $ java -version java version "1.6.0" Java(TM) SE Runtime Environment (build 1.6.0-b105) Java HotSpot(TM) Server VM (build 1.6.0-b105, mixed mode) betelgeuse@pena ~/test/java $ javadoc -source 1.3 Hello.java Loading source file Hello.java... Hello.java:3: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier (use -source 1.3 or lower to use 'assert' as an identifier) private void assert(){;} ^ 1 error betelgeuse@pena ~/test/java $ cat Hello.java public class Hello { private void assert(){;} public static void main(String[] args) { System.out.println("Hello World!"); } } This makes old packages fail when trying to build javadocs using sun-jdk-1.6. I reported this upstream so let's see what happens.
Would be nice if they also respected -source <=1.4 and enum keyword :( same issue, but happens in 1.5 too, I think.
Same seems to happen with sun-jdk-1.7 from experimental-overlay.
(In reply to comment #1) > Would be nice if they also respected -source <=1.4 and enum keyword :( same > issue, but happens in 1.5 too, I think. was wrong, 1.5 is fine
Aihe: 6507179: javadoc -source 1.3 does not work with jdk6 Päiväys: Fri, 30 Mar 2007 15:38:41 -0700 Lähettäjä: Mark Reinhold <mr@sun.com> Vastaanottaja: betelgeuse@gentoo.org CC: scott.seligman@sun.com, tom.marble@sun.com Petteri, A fix for the javadoc bug in Sun's JDK that you asked me about was checked in today and will show up in 6u2, due to ship in June. Scott Seligman (cc'd) did the actual work -- thanks Scott! - Mark
Seems to be fixed (tried it with assert) in sun-jdk-1.6.0.02_alpha02 that's in java-experimental overlay. That confirms the resolution of upstream bug. 1.7 (recent sun-jdk-1.7.0.0_alpha11) is still broken though... might be useful to report it too.
1.6.0.02 fixes this and I removed all the work around dependency atoms.