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 225206

Summary: Having an issue where the IDE marks it's own generated code as an error.
Product: guibuilder Reporter: Enzima
Component: CodeAssignee: issues@guibuilder <issues>
Status: REOPENED ---    
Severity: normal CC: ttampe
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log
screenshot of IDE editor
IDE log
corrupted source file
matching form file

Description Enzima 2013-01-23 00:57:33 UTC
Product Version = NetBeans IDE 7.2 (Build 201207171143)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_07
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.3-b01
Comment 1 Enzima 2013-01-23 00:57:38 UTC
Created attachment 130505 [details]
IDE log
Comment 2 Enzima 2013-01-23 00:58:56 UTC
Having an issue where the IDE marks it's own generated code (JFrame Form file) as an error. At this line: "private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {" (generated by the IDE) it says "illegal start of expression"
Comment 3 Marian Mirilovic 2013-01-30 16:04:14 UTC
Could you please attach the file here and reopen ? Thanks in advance.
Comment 4 Tomas Pavek 2013-04-22 16:43:47 UTC
We need to see the GUI form where this happens, or even better have steps how to reproduce it. Thanks.
Comment 5 ttampe 2014-05-19 10:22:30 UTC
To reproduce:
Create new GUIFormExamples Project from Templates.

Open "Find.java"
Right click "Find" button
Select "Events | Action | actionPerformed"

Created handler's source is

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
//GEN-FIRST:event_jButton1ActionPerformed
	private void jButton1ActionPerformed(java.awt.event.ActionEvent evt)
	{
		// TODO add your handling code here:
}//GEN-LAST:event_jButton1ActionPerformed
Comment 6 ttampe 2014-05-19 10:25:26 UTC
Created attachment 147329 [details]
screenshot of IDE editor
Comment 7 ttampe 2014-05-19 10:26:32 UTC
Created attachment 147330 [details]
IDE log
Comment 8 ttampe 2014-05-19 10:30:34 UTC
Created attachment 147331 [details]
corrupted source file
Comment 9 ttampe 2014-05-19 10:31:09 UTC
Created attachment 147332 [details]
matching form file
Comment 10 ttampe 2014-05-19 10:33:15 UTC
Comment on attachment 147332 [details]
matching form file

look fine to me
Comment 11 ttampe 2016-12-13 08:09:36 UTC
(In reply to ttampe from comment #5)
> To reproduce:
> Create new GUIFormExamples Project from Templates.
> 
> Open "Find.java"
> Right click "Find" button
> Select "Events | Action | actionPerformed"
> 
> Created handler's source is
> 
> private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
> //GEN-FIRST:event_jButton1ActionPerformed
> 	private void jButton1ActionPerformed(java.awt.event.ActionEvent evt)
> 	{
> 		// TODO add your handling code here:
> }//GEN-LAST:event_jButton1ActionPerformed

still wrong with
Product Version: NetBeans IDE 8.2 (Build 201609300101)
Java: 1.8.0_112; Java HotSpot(TM) 64-Bit Server VM 25.112-b15
Runtime: Java(TM) SE Runtime Environment 1.8.0_112-b15
System: Windows 8.1 version 6.3 running on amd64; Cp1252; de_DE (nb)