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

AssertionError in MethodHandles$Lookup.defineClass

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 12
    • Fix Version/s: 12
    • Component/s: core-libs
    • Labels:
      None

      Description

      stderr: [Exception in thread "main" java.lang.AssertionError
      at java.base/java.lang.invoke.MethodHandles$Lookup.defineClass(MethodHandles.java:972)
      at java.base/java.lang.invoke.ClassSpecializer$Factory$1.run(ClassSpecializer.java:585)
      at java.base/java.lang.invoke.ClassSpecializer$Factory$1.run(ClassSpecializer.java:581)
      at java.base/java.security.AccessController.doPrivileged(Native Method)
      at java.base/java.lang.invoke.ClassSpecializer$Factory.generateConcreteSpeciesCode(ClassSpecializer.java:581)
      at java.base/java.lang.invoke.ClassSpecializer$Factory.loadSpecies(ClassSpecializer.java:489)
      at java.base/java.lang.invoke.ClassSpecializer.findSpecies(ClassSpecializer.java:193)
      at java.base/java.lang.invoke.BoundMethodHandle$SpeciesData.extendWith(BoundMethodHandle.java:352)
      at java.base/java.lang.invoke.LambdaFormEditor.newSpeciesData(LambdaFormEditor.java:388)
      at java.base/java.lang.invoke.LambdaFormEditor.bindArgumentForm(LambdaFormEditor.java:451)
      at java.base/java.lang.invoke.LambdaFormEditor.bindArgumentI(LambdaFormEditor.java:402)
      at java.base/java.lang.invoke.BoundMethodHandle.bindArgumentI(BoundMethodHandle.java:100)
      at java.base/java.lang.invoke.MethodHandles.insertArgumentPrimitive(MethodHandles.java:3537)
      at java.base/java.lang.invoke.MethodHandles.insertArguments(MethodHandles.java:3518)
      at java.base/java.lang.invoke.StringConcatFactory$MethodHandleInlineCopyStrategy.generate(StringConcatFactory.java:1621)
      at java.base/java.lang.invoke.StringConcatFactory.generate(StringConcatFactory.java:756)
      at java.base/java.lang.invoke.StringConcatFactory.doStringConcat(StringConcatFactory.java:665)
      at java.base/java.lang.invoke.StringConcatFactory.makeConcatWithConstants(StringConcatFactory.java:581)
      at java.base/java.lang.invoke.BootstrapMethodInvoker.invoke(BootstrapMethodInvoker.java:99)
      at java.base/java.lang.invoke.CallSite.makeSite(CallSite.java:307)
      at java.base/java.lang.invoke.MethodHandleNatives.linkCallSiteImpl(MethodHandleNatives.java:258)
      at java.base/java.lang.invoke.MethodHandleNatives.linkCallSite(MethodHandleNatives.java:248)
      at java.naming/com.sun.naming.internal.VersionHelper.lambda$getJavaHomeConfStream$3(VersionHelper.java:201)
      at java.base/java.security.AccessController.doPrivileged(Native Method)
      at java.naming/com.sun.naming.internal.VersionHelper.getJavaHomeConfStream(VersionHelper.java:208)
      at java.naming/com.sun.naming.internal.ResourceManager.getApplicationResources(ResourceManager.java:530)
      at java.naming/com.sun.naming.internal.ResourceManager.getInitialEnvironment(ResourceManager.java:188)
      at java.naming/javax.naming.InitialContext.init(InitialContext.java:232)
      at java.naming/javax.naming.InitialContext.<init>(InitialContext.java:208)
      at java.naming/javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:101)
      at test/test.StoreRemote.main(StoreRemote.java:108)
      java.net.SocketException: Socket is closed
      at java.base/java.net.ServerSocket.accept(ServerSocket.java:515)
      at test/test.LDAPServer.<init>(LDAPServer.java:69)
      at test/test.StoreRemote$1.run(StoreRemote.java:82)
      at java.base/java.lang.Thread.run(Thread.java:835)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mchung Mandy Chung
                Reporter:
                chegar Chris Hegarty
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: