Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 158720

Summary: javadoc from >=dev-java/sun-jdk-1.6 does not respect -source 1.3
Product: Gentoo Linux Reporter: Petteri Räty (RETIRED) <betelgeuse>
Component: [OLD] DevelopmentAssignee: Java team <java>
Status: RESOLVED FIXED    
Severity: normal CC: heiko.baums, pacho
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6507179
Whiteboard:
Package list:
Runtime testing required: ---

Description Petteri Räty (RETIRED) gentoo-dev 2006-12-21 04:26:11 UTC
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.
Comment 1 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-12-23 04:52:48 UTC
Would be nice if they also respected -source <=1.4 and enum keyword :( same issue, but happens in 1.5 too, I think.
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2007-01-20 15:48:34 UTC
Same seems to happen with sun-jdk-1.7 from experimental-overlay.
Comment 3 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-01-21 14:23:13 UTC
(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
Comment 4 Petteri Räty (RETIRED) gentoo-dev 2007-03-31 08:06:30 UTC
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
Comment 5 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-04-12 21:56:16 UTC
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.
Comment 6 Petteri Räty (RETIRED) gentoo-dev 2007-07-12 22:42:12 UTC
1.6.0.02 fixes this and I removed all the work around dependency atoms.