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

Netbeans 12.2 nb-javac can't parse correct java code (works with 12.1 and before)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 12.2
    • None
    • java - Editor
    • None
    • Arch Linux with Jebrains JDK 11.0.9

    Description

      unfortunately I face some serious problems with 12.2 and the nb-javac plugin: 2 valid Java Classes will be marked as invalid code in the UI for no reason.
      It is completely valid code, which compiles fine in the shell. Also, the same project opens perfectly fine in Netbeans 12.1 and before (see screenshots for illustration).
       
      Furthermore, I can reproduce this problem with the same code on 2 different linux machines. The interesting part is: It affects always the same 2 classes, while hundreds of other classes validate and compile without any issues.
      Although I was unable to spot anythign exceptional about these 2 classes. I do not understand, what is going on.
       
      I have attached the 2 classes, maybe someone wants to have a look at it.
      Please tell me, what further information I may provide.
       
       

       

      Attachments

        1. image-2020-12-17-13-20-46-760.png
          179 kB
          Andreas Reichel
        2. image-2020-12-17-13-20-52-170.png
          183 kB
          Andreas Reichel
        3. ThreadListWithSemaphore.java
          4 kB
          Andreas Reichel
        4. ThreadMap.java
          4 kB
          Andreas Reichel

        Activity

          People

            akshaygupta Akshay Gupta
            are Andreas Reichel
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: