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 - Having an issue where the IDE marks it's own generated code as an error.
Summary: Having an issue where the IDE marks it's own generated code as an error.
Status: REOPENED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-23 00:57 UTC by Enzima
Modified: 2016-12-13 08:10 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (57.57 KB, text/plain)
2013-01-23 00:57 UTC, Enzima
Details
screenshot of IDE editor (26.54 KB, image/png)
2014-05-19 10:25 UTC, ttampe
Details
IDE log (57.91 KB, application/octet-stream)
2014-05-19 10:26 UTC, ttampe
Details
corrupted source file (7.88 KB, application/octet-stream)
2014-05-19 10:30 UTC, ttampe
Details
matching form file (8.15 KB, application/octet-stream)
2014-05-19 10:31 UTC, ttampe
Details

Note You need to log in before you can comment on or make changes to this bug.
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)