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

Automatic import of package places the import clause at the bottom of the module-info.java file, causing a syntax error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 11.0
    • None
    • None
    • None
    • Ubuntu 18.10
      Java 12d

    Description

      1. Open a module-info.java file
      2. state "uses ClassName1", with ClassName1 available in the project
      3. the light bulb will show up at the left hand side of the editor window
      4. chose import mysample.namespace

       

      => the import clause will be added to the bottom of the file (needs to be at top)

      This will cause a syntax error of course

      Attachments

        Activity

          People

            Unassigned Unassigned
            Meeser Martin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: