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

Some classes not found from multi-release JARs in Java editor

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 12.0, 11.3
    • Fix Version/s: 12.0
    • Component/s: java - Source
    • Labels:
      None

      Description

      If a multi-release JAR contains resources with the same name but a different extension, then only one of these resources is picked up.  This causes errors with projects using eg. FlatLaf where errors are seen in the code editor while compilation works fine.  Files such as FlatLightLaf.properties shadows FlatLightLaf.class.

      This seems to be caused by an error in CachingFileManager and ModuleFileManager using the file name and location without extension as a map key to look up multi-release files.

      See also https://github.com/JFormDesigner/FlatLaf/issues/13

      The attached projects demonstrate the issue on classpath and modulepath.

        Attachments

        1. MRJ issue.zip
          6 kB
          Neil C Smith

          Activity

            People

            • Assignee:
              neilcsmith Neil C Smith
              Reporter:
              neilcsmith Neil C Smith
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m