Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-5306

Netbeans performance.java tests do not run with the latest jdk

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • None
    • None
    • ide - Performance
    • None

    Description

      The tests under performance.java module (Functional Test package -> org.netbeans.performance.j2se.dialogs ->AboutDialogTest.java) throws error when run with the latest jdk.This is because of disabling the illegal access in the jdk (https://bugs.openjdk.java.net/browse/JDK8255363https://bugs.openjdk.java.net/browse/JDK-8256299).

       

      The tests fails with the following error
      Forked Java VM exited abnormally. Please note the time in the report does not reflect the time until the VM exit.
      junit.framework.AssertionFailedError
      at jdk.internal.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.util.Vector.forEach(Vector.java:1359)
      at jdk.internal.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at jdk.internal.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at jdk.internal.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.util.Vector.forEach(Vector.java:1359)
      at jdk.internal.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at jdk.internal.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:128)
       
      There is a workaround. when we add --illegal-access=permit in the performance.java/build.xml file the test runs fine.
       

      many other performance.java menus and actions tests fails with latest jdk

      like performance.j2se.menus.EditorDownButtonPopupMenuTest
      Testcase: org.netbeans.performance.j2se.menus.EditorDownButtonPopupMenuTest:testOpenFoldersProject: Caused an ERRORForked Java VM exited abnormally. Please note the time in the report does not reflect the time until the VM exit.junit.framework.AssertionFailedError: Forked Java VM exited abnormally. Please note the time in the report does not reflect the time until the VM exit. at jdk.internal.reflect.GeneratedMethodAccessor56.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.util.Vector.forEach(Vector.java:1359) at jdk.internal.reflect.GeneratedMethodAccessor56.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at jdk.internal.reflect.GeneratedMethodAccessor56.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at jdk.internal.reflect.GeneratedMethodAccessor56.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.util.Vector.forEach(Vector.java:1359) at jdk.internal.reflect.GeneratedMethodAccessor56.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at jdk.internal.reflect.GeneratedMethodAccessor56.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:128)

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            trebari Tejpal Rebari
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: