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

java/lang/invoke/lambda/LogGeneratedClassesTest.java failed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • None
    • 9
    • core-libs

      Observed failures on Linux/windows both x64/x86

      Please refer to the test output below:
      ----------System.out:(84/4869)*----------
      [TestNG] Running:
        java/lang/invoke/lambda/LogGeneratedClassesTest.java

      config LogGeneratedClassesTest.setup(): success
      test LogGeneratedClassesTest.testDumpDirIsFile(): success
      test LogGeneratedClassesTest.testDumpDirNotExist(): success
      WARNING: POSIX is not supported. Skipping testDumpDirNotWritable test.
      test LogGeneratedClassesTest.testDumpDirNotWritable(): success
      test LogGeneratedClassesTest.testLogging(): failure
      java.lang.AssertionError: Two lambda captured expected [5] but found [14]
      at org.testng.Assert.fail(Assert.java:94)
      at org.testng.Assert.failNotEquals(Assert.java:494)
      at org.testng.Assert.assertEquals(Assert.java:123)
      at org.testng.Assert.assertEquals(Assert.java:265)
      at LogGeneratedClassesTest.testLogging(LogGeneratedClassesTest.java:129)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:520)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
      at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
      at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
      at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
      at org.testng.TestRunner.privateRun(TestRunner.java:767)
      at org.testng.TestRunner.run(TestRunner.java:617)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
      at org.testng.SuiteRunner.run(SuiteRunner.java:240)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
      at org.testng.TestNG.run(TestNG.java:1057)
      at com.sun.javatest.regtest.TestNGAction$TestNGRunner.main(TestNGAction.java:163)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:520)
      at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:218)
      at java.lang.Thread.run(Thread.java:804)
      accepted: dumpLong
      accepted: dumpLong\\com
      accepted: dumpLong\\com\\example
      accepted: dumpLong\\com\\example\\nonsense
      accepted: dumpLong\\com\\example\\nonsense\\nonsense
      filetered out: dumpLong\\java
      filetered out: dumpLong\\java\\time
      filetered out: dumpLong\\java\\time\\chrono
      filetered out: dumpLong\\java\\time\\chrono\\AbstractChronology$$Lambda$12.class
      filetered out: dumpLong\\java\\time\\chrono\\AbstractChronology$$Lambda$13.class
      filetered out: dumpLong\\java\\time\\chrono\\AbstractChronology$$Lambda$14.class
      filetered out: dumpLong\\java\\time\\temporal
      filetered out: dumpLong\\java\\time\\temporal\\TemporalAdjusters$$Lambda$11.class
      filetered out: dumpLong\\java\\util
      filetered out: dumpLong\\java\\util\\stream
      filetered out: dumpLong\\java\\util\\stream\\Collectors$$Lambda$2.class
      filetered out: dumpLong\\java\\util\\stream\\Collectors$$Lambda$3.class
      filetered out: dumpLong\\java\\util\\stream\\Collectors$$Lambda$4.class
      filetered out: dumpLong\\java\\util\\stream\\Collectors$$Lambda$5.class
      filetered out: dumpLong\\java\\util\\stream\\FindOps$$Lambda$8.class
      filetered out: dumpLong\\java\\util\\stream\\FindOps$$Lambda$9.class
      filetered out: dumpLong\\jdk
      filetered out: dumpLong\\jdk\\internal
      filetered out: dumpLong\\jdk\\internal\\logger
      filetered out: dumpLong\\jdk\\internal\\logger\\SimpleConsoleLogger$CallerFinder$$Lambda$7.class
      filetered out: dumpLong\\jdk\\internal\\logger\\SimpleConsoleLogger$Formatting$$Lambda$10.class
      filetered out: dumpLong\\jdk\\Version$$Lambda$1.class
      filetered out: dumpLong\\sun
      filetered out: dumpLong\\sun\\util
      filetered out: dumpLong\\sun\\util\\locale
      filetered out: dumpLong\\sun\\util\\locale\\provider
      filetered out: dumpLong\\sun\\util\\locale\\provider\\JRELocaleProviderAdapter$$Lambda$15.class
      test LogGeneratedClassesTest.testLoggingException(): success
      test LogGeneratedClassesTest.testNotLogging(): success
      config LogGeneratedClassesTest.cleanup(): success

      ===============================================
      java/lang/invoke/lambda/LogGeneratedClassesTest.java
      Total tests run: 6, Failures: 1, Skips: 0

            mhaupt Michael Haupt
            xiaofeya Xiaofeng Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: