Tejpal Rebari created NETBEANS-5306:
---------------------------------------
Summary: Netbeans performance.java tests doesn't run with the
latest jdk
Key: NETBEANS-5306
URL: https://issues.apache.org/jira/browse/NETBEANS-5306
Project: NetBeans
Issue Type: Bug
Components: ide - Performance
Reporter: Tejpal Rebari
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/JDK8255363|https://bugs.openjdk.java.net/browse/JDK-8255363],
[https://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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists