First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 158720
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Java team <java@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Petteri Räty <betelgeuse@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 158720 depends on: Show dependency tree
Bug 158720 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-12-21 04:26 0000
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 From Vlastimil Babka (Caster) 2006-12-23 04:52:48 0000 -------
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 From Petteri Räty 2007-01-20 15:48:34 0000 -------
Same seems to happen with sun-jdk-1.7 from experimental-overlay.

------- Comment #3 From Vlastimil Babka (Caster) 2007-01-21 14:23:13 0000 -------
(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 From Petteri Räty 2007-03-31 08:06:30 0000 -------
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 From Vlastimil Babka (Caster) 2007-04-12 21:56:16 0000 -------
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 From Petteri Räty 2007-07-12 22:42:12 0000 -------
1.6.0.02 fixes this and I removed all the work around dependency atoms. 

First Last Prev Next    No search results available      Search page      Enter new bug