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 219610 - Unable to add event handlers to components
Summary: Unable to add event handlers to components
Status: RESOLVED DUPLICATE of bug 138391
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 7.2
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-05 15:34 UTC by crimes
Modified: 2012-10-05 15:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Dump file (includes stack trace) (15.71 KB, application/octet-stream)
2012-10-05 15:34 UTC, crimes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description crimes 2012-10-05 15:34:29 UTC
Created attachment 125467 [details]
Dump file (includes stack trace)

Every time I try to add an event listener to a component in the GUI Builder, I get the following error (abridged - full trace attached):

An error occurred during parsing of '...'. Please report a bug against java/source and attach dump file '...'.
Caused: java.lang.AssertionError: Attr.visitNewClass tree [new java.awt.event.ActionListener(){
    
    () {
        super();
    }
    
    public void actionPerformed(java.awt.event.ActionEvent evt) {
        colorTableChanged(evt);
    }
}] with constructor type [null] has symbol [symbol not found error] of kind [ 71]
	at com.sun.tools.javac.util.Assert.error(Assert.java:133)
	at com.sun.tools.javac.comp.Attr.visitNewClass(Attr.java:1873)
	at com.sun.tools.javac.tree.JCTree$JCNewClass.accept(JCTree.java:1377)
	at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:451)
	at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:424)
	at com.sun.tools.javac.comp.Attr.attribArgs(Attr.java:525)
	at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1549)
	at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1326)
...

Exception Reporter linked it to issue #138391, although the stack traces are subtly different and AFAICT all the reports there relate to manual editing.

Using NetBeans 7.2 / GUIBuilder 1.16.1 / Java 1.6.0_33; Java HotSpot(TM) 64-Bit Server VM 20.8-b03-424
Comment 1 Tomas Pavek 2012-10-05 15:53:33 UTC
It much likely is bug 138391, i.e. a parsing error, even though not from manual editing but invoked from GUI builder on its generated code.
Comment 2 Tomas Pavek 2012-10-05 15:54:48 UTC

*** This bug has been marked as a duplicate of bug 138391 ***