JDK-8242933 : jdk/jfr/api/consumer/TestHiddenMethod uses nashorn script engine
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jfr
  • Affected Version: 15
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-04-16
  • Updated: 2020-05-04
  • Resolved: 2020-04-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 15
15 b21Fixed
Related Reports
Relates :  
Description
test/jdk/jdk/jfr/api/consumer/TestHiddenMethod uses nashorn script engine. But nashorn engine has been removed (JEP: https://openjdk.java.net/jeps/372). Port the test to avoid nashorn.

Test also fails in CI with NullPointerException:
Test: jdk/jfr/api/consumer/TestHiddenMethod.java
Platforms: ALL
Failure: 
java.lang.NullPointerException
	at jdk.jfr.api.consumer.TestHiddenMethod.main(TestHiddenMethod.java:66)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:832)


====== Related to Nashorn removal, the failure is in engine.eval():
           ScriptEngine engine = manager.getEngineByName("nashorn");
            engine.eval(...)   <<------ Line 66, NPE
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/49f022bb82b0 User: egahlin Date: 2020-04-27 09:34:06 +0000
27-04-2020

ILW = MMM = P3
21-04-2020