Luke Lindsay created NETBEANS-6351:
--------------------------------------
Summary: Guarded code in old GUI editor created java files no
longer read correctly.
Key: NETBEANS-6351
URL: https://issues.apache.org/jira/browse/NETBEANS-6351
Project: NetBeans
Issue Type: Bug
Components: guibuilder - Code
Affects Versions: 12.6
Environment: Netbeans 12.6, windows 10
Reporter: Luke Lindsay
Attachments: error message.png, freerails-java.zip
I was revising an old project from 2001-2006. It includes a number of swing
forms created with the netbeans GUI editor. These forms can no longer be read
correctly. I get an error message saying "Error while parsing java source
file" see attachment below. !error message.png!
I think the cause of the problem is a change how guarded blocks are indicated.
In the old files, there is a space after the "//", e.g.
{code:java}
// GEN-BEGIN:initComponents
// GEN-FIRST:event_formKeyPressed{code}
Whereas the current version seems to expect no space, e.g.
{code:java}
//GEN-BEGIN:initComponents
//GEN-FIRST:event_formKeyPressed {code}
The attached project has a number of examples of forms that can no longer be
read correctly. The examples are in the directory
src\main\java\jfreerails\client\view
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists