Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8154837

Class::getPackage with exploded modules when classes in modules defined to the boot loader

    XMLWordPrintable

Details

    Description


      Here's an example:

      Exception in thread "AWT-EventQueue-1" java.nio.file.InvalidPathException: Illegal char <:> at index 4: file:///C:/cygwin64/data/projects/client/build/windows-x86_64-normal-server-fastdebug/jdk/modules/java.desktop/
          at sun.nio.fs.WindowsPathParser.normalize(java.base/WindowsPathParser.java:182)
          at sun.nio.fs.WindowsPathParser.parse(java.base/WindowsPathParser.java:153)
          at sun.nio.fs.WindowsPathParser.parse(java.base/WindowsPathParser.java:77)
          at sun.nio.fs.WindowsPath.parse(java.base/WindowsPath.java:94)
          at sun.nio.fs.WindowsFileSystem.getPath(java.base/WindowsFileSystem.java:255)
          at java.nio.file.Paths.get(java.base/Paths.java:84)
          at jdk.internal.loader.BootLoader$PackageHelper.findModule(java.base/BootLoader.java:227)
          at jdk.internal.loader.BootLoader$PackageHelper.definePackage(java.base/BootLoader.java:200)
          at jdk.internal.loader.BootLoader.getDefinedPackage(java.base/BootLoader.java:164)
          at jdk.internal.loader.BootLoader.definePackage(java.base/BootLoader.java:152)
          at java.lang.Class.getPackage(java.base/Class.java:931)
          at com.sun.java.swing.plaf.windows.DesktopProperty.updateAllUIs(java.desktop/DesktopProperty.java:113)
          at com.sun.java.swing.plaf.windows.DesktopProperty.access$000(java.desktop/DesktopProperty.java:45)
          at com.sun.java.swing.plaf.windows.DesktopProperty$1.run(java.desktop/DesktopProperty.java:222)
          at java.awt.event.InvocationEvent.dispatch(java.desktop/InvocationEvent.java:313)
          at java.awt.EventQueue.dispatchEventImpl(java.desktop/EventQueue.java:759)
          at java.awt.EventQueue.access$500(java.desktop/EventQueue.java:97)
          at java.awt.EventQueue$3.run(java.desktop/EventQueue.java:712)
          at java.awt.EventQueue$3.run(java.desktop/EventQueue.java:706)
          at java.security.AccessController.doPrivileged(java.base/Native Method)
          at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(java.base/ProtectionDomain.java:77)
          at java.awt.EventQueue.dispatchEvent(java.desktop/EventQueue.java:729)
          at java.awt.EventDispatchThread.pumpOneEventForFilters(java.desktop/EventDispatchThread.java:199)
          at java.awt.EventDispatchThread.pumpEventsForFilter(java.desktop/EventDispatchThread.java:124)
          at java.awt.EventDispatchThread.pumpEventsForHierarchy(java.desktop/EventDispatchThread.java:113)
          at java.awt.EventDispatchThread.pumpEvents(java.desktop/EventDispatchThread.java:109)
          at java.awt.EventDispatchThread.pumpEvents(java.desktop/EventDispatchThread.java:101)
          at java.awt.EventDispatchThread.run(java.desktop/EventDispatchThread.java:90)

      Attachments

        Activity

          People

            mchung Mandy Chung
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: