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

[lworld] test/jdk/java/lang/invoke/callerSensitive/CallerSensitiveAccess.java fails with --enable-preview

XMLWordPrintable

      When --enable-preview is set, lib/valueclasses/java.base-valueclasses.jar containing the JDK value classes which is loaded and patch java.base.

      test/jdk/java/lang/invoke/callerSensitive/CallerSensitiveAccess.java fails with --enable-preview:

      java.lang.RuntimeException: java.lang.IllegalStateException: zip file closed
      at org.testng.internal.MethodInvocationHelper.invokeMethodNoCheckedException(MethodInvocationHelper.java:49)
      at org.testng.internal.MethodInvocationHelper.invokeDataProvider(MethodInvocationHelper.java:145)
      at org.testng.internal.Parameters.handleParameters(Parameters.java:797)
      at org.testng.internal.Parameters.handleParameters(Parameters.java:740)
      at org.testng.internal.ParameterHandler.handleParameters(ParameterHandler.java:59)
      at org.testng.internal.ParameterHandler.createParameters(ParameterHandler.java:38)
      at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:789)
      at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
      at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
      at org.testng.TestRunner.privateRun(TestRunner.java:764)
      at org.testng.TestRunner.run(TestRunner.java:585)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
      at org.testng.SuiteRunner.run(SuiteRunner.java:286)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
      at org.testng.TestNG.runSuites(TestNG.java:1069)
      at org.testng.TestNG.run(TestNG.java:1037)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:102)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:58)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1570)
      Caused by: java.lang.IllegalStateException: zip file closed
      at java.base/java.util.zip.ZipFile.ensureOpen(ZipFile.java:846)
      at java.base/java.util.zip.ZipFile$EntrySpliterator.tryAdvance(ZipFile.java:572)
      at java.base/java.util.Spliterator.forEachRemaining(Spliterator.java:332)
      at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:517)
      at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:507)
      at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.forEachRemaining(StreamSpliterators.java:310)
      at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:735)
      at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:517)
      at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:507)
      at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:583)
      at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:252)
      at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616)
      at CallerSensitiveAccess.callerSensitiveMethods(CallerSensitiveAccess.java:67)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:76)
      at org.testng.internal.MethodInvocationHelper.invokeMethodNoCheckedException(MethodInvocationHelper.java:45)
      ... 28 more

            rriggs Roger Riggs
            mchung Mandy Chung
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: