Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-6351

Guarded code in old GUI editor created java files no longer read correctly.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 12.6
    • None
    • guibuilder - Code
    • None
    • Netbeans 12.6, windows 10

    Description

      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.

      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.

      // GEN-BEGIN:initComponents 
      // GEN-FIRST:event_formKeyPressed

      Whereas the current version seems to expect no space, e.g.

      //GEN-BEGIN:initComponents
      //GEN-FIRST:event_formKeyPressed 

      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

      Attachments

        1. freerails-java.zip
          2.19 MB
          Luke Lindsay
        2. error message.png
          11 kB
          Luke Lindsay

        Activity

          People

            Unassigned Unassigned
            luke777 Luke Lindsay
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: