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.
- 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
Remove {classpath} from the compiler settings. There's a openide-compat.jar that is causing the troubles.
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.