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

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

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 12.0, 11.3
    • 12.0
    • java - Source
    • 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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            neilcsmith Neil C Smith
            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

                Slack

                  Issue deployment