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

[test] java/net/URL/HandlerLoop has illegal reflective access

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 12
    • Fix Version/s: 12
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b23

      Description

      When running the test java/net/URL/HandlerLoop it shows:

      WARNING: An illegal reflective access operation has occurred
      WARNING: Illegal reflective access by HandlerLoop$HandlerFactory (file:/ws/jdk-dev/open/JTwork/classes/java/net/URL/HandlerLoop.d/) to constructor sun.net.www.protocol.file.Handler()
      WARNING: Please consider reporting this to the maintainers of HandlerLoop$HandlerFactory
      WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
      WARNING: All illegal access operations will be denied in a future release
      STATUS:Passed

      Adding @modules will allow the access needed.

        Attachments

          Activity

            People

            Assignee:
            rriggs Roger Riggs
            Reporter:
            rriggs Roger Riggs
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: