This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 8379 - Sun javac compiler error when compiling Forte code
Summary: Sun javac compiler error when compiling Forte code
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: -FFJ-
Hardware: Sun Solaris
: P4 normal (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-11-12 14:25 UTC by Jiri Skrivanek
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2000-11-12 14:25:21 UTC
- only on Sun JDK1.2.2 (e.g. on BlackDown JDK it is OK)
- set compiler to External and try to compile a class which extends CookieAction
class
- exception is thrown

sun.tools.java.CompilerError: duplicate addition
        at java.lang.Throwable.fillInStackTrace(Native Method)
        at java.lang.Throwable.fillInStackTrace(Compiled Code)
        at java.lang.Throwable.<init>(Compiled Code)
        at java.lang.Error.<init>(Error.java:50)
        at sun.tools.java.CompilerError.<init>(CompilerError.java:29)
        at sun.tools.java.MethodSet.add(Compiled Code)
        at sun.tools.java.ClassDefinition.collectInheritedMethods(Compiled Code)
        at sun.tools.java.BinaryClass.basicCheck(BinaryClass.java:80)
        at sun.tools.java.ClassDeclaration.getClassDefinition(Compiled Code)
        at sun.tools.java.ClassDefinition.collectOneClass(Compiled Code)
        at sun.tools.java.ClassDefinition.collectInheritedMethods(Compiled Code)
        at sun.tools.java.BinaryClass.basicCheck(BinaryClass.java:80)
        at sun.tools.java.ClassDeclaration.getClassDefinition(Compiled Code)
        at sun.tools.java.ClassDefinition.collectOneClass(Compiled Code)
        at sun.tools.java.ClassDefinition.collectInheritedMethods(Compiled Code)
        at sun.tools.java.BinaryClass.basicCheck(BinaryClass.java:80)
        at sun.tools.java.ClassDeclaration.getClassDefinition(Compiled Code)
        at sun.tools.java.ClassDefinition.collectOneClass(Compiled Code)
        at sun.tools.java.ClassDefinition.collectInheritedMethods(Compiled Code)
        at sun.tools.java.BinaryClass.basicCheck(BinaryClass.java:80)
        at sun.tools.java.ClassDeclaration.getClassDefinition(Compiled Code)
        at sun.tools.java.BinaryClass.initInnerClasses(Compiled Code)
        at sun.tools.java.BinaryClass.loadNested(BinaryClass.java:228)
        at sun.tools.java.BinaryClass.loadNested(BinaryClass.java:210)
        at sun.tools.javac.BatchEnvironment.loadDefinition(Compiled Code)
        at sun.tools.java.ClassDeclaration.getClassDefinition(Compiled Code)
        at sun.tools.java.BinaryClass.initInnerClasses(Compiled Code)
        at sun.tools.java.BinaryClass.loadNested(BinaryClass.java:228)
        at sun.tools.java.BinaryClass.loadNested(BinaryClass.java:210)
        at sun.tools.javac.BatchEnvironment.loadDefinition(Compiled Code)
        at sun.tools.java.Environment.loadDefinition(Environment.java:174)
        at sun.tools.java.Environment.loadDefinition(Environment.java:174)
        at sun.tools.java.Environment.loadDefinition(Environment.java:174)
        at sun.tools.java.ClassDeclaration.getClassDefinitionNoCheck(Compiled
Code)
        at sun.tools.java.Imports.resolve(Compiled Code)
        at sun.tools.javac.SourceClass.basicCheck(SourceClass.java:1079)
        at sun.tools.java.ClassDeclaration.getClassDefinition(Compiled Code)
        at sun.tools.javac.Main.compile(Compiled Code)
        at sun.tools.javac.Main.main(Main.java:733)
error: An error has occurred in the compiler; please file a bug report
(http://java.sun.com/cgi-bin/bugreport.cgi).
1 error
Comment 1 Svata Dedic 2000-11-13 06:48:59 UTC
Remove {classpath} from the compiler settings. There's a openide-compat.jar that
is causing the troubles.
Comment 2 Svata Dedic 2000-11-29 15:53:59 UTC
For 1.2.2, don't try to compile against openide-compat.jar. Class reader
routines there does not get over bytecode hacks made in the compat library.