[HtmlUnit] [htmlunit:bugs] #1961 Illegal reflective access in htmlunit-core-js-2.28.jar when running in Java 9 and above
RBRi via HtmlUnit-develop <[email protected]> Mon, 27 May 2019 17:31:32 -0000
| Newsgroups | gmane.comp.java.htmlunit.devel |
|---|---|
| Message-ID | </p/htmlunit/bugs/1961/485c1ce73066d1423199e45293c105e4e4519fd1.bugs@htmlunit.p.sourceforge.net> |
This is a multi-part message in MIME format. --===============6482656934685260973== Content-Type: multipart/related; boundary="===============3034092142400010704==" This is a multi-part message in MIME format. --===============3034092142400010704== Content-Type: multipart/alternative; boundary="===============6975324880065443064==" MIME-Version: 1.0 --===============6975324880065443064== MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit We are now using the latest Rhino code. If you still have problems with this please open a rhino issue on github. --- ** [bugs:#1961] Illegal reflective access in htmlunit-core-js-2.28.jar when running in Java 9 and above** **Status:** accepted **Group:** 2.30 **Created:** Wed Apr 25, 2018 07:39 AM UTC by Jey **Last Updated:** Mon May 14, 2018 08:44 AM UTC **Owner:** RBRi Running java testing application running on Java 10. Warning 'Illegal reflective access' is thrown. Since Jdk 9, illegal reflective access is allowed but warning is thrown. Illegal reflective access will not be permitted in future release. See: http://mail.openjdk.java.net/pipermail/jigsaw-dev/2017-May/012673.html Jdk 8 allows reflective access but jdk 8 end of life date is Jan 2019. Java 9 EOL is March 2018 and supported Java is now Java 10 up to Sep 2018. (See http://www.oracle.com/technetwork/java/eol-135779.html) There is no information when this Illegal reflective access is completely removed from jdk. But when it is removed htmlunit will stop working. The stack trace: WARNING: Illegal reflective access by net.sourceforge.htmlunit.corejs.javascript.NativeArray (file:/lib/htmlunit-core-js-2.28.jar) to field java.util.Arrays$LegacyMergeSort.userRequested at net.sourceforge.htmlunit.corejs.javascript.NativeArray.<clinit>(NativeArray.java:39) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.initSafeStandardObjects(ScriptRuntime.java:186) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.initStandardObjects(ScriptRuntime.java:284) at net.sourceforge.htmlunit.corejs.javascript.Context.initStandardObjects(Context.java:1241) at net.sourceforge.htmlunit.corejs.javascript.Context.initStandardObjects(Context.java:1177) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.init(JavaScriptEngine.java:210) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$000(JavaScriptEngine.java:105) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$1.run(JavaScriptEngine.java:174) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:599) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:527) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.initialize(JavaScriptEngine.java:185) at com.gargoylesoftware.htmlunit.WebClient.initialize(WebClient.java:1073) at com.gargoylesoftware.htmlunit.WebWindowImpl.setEnclosedPage(WebWindowImpl.java:146) at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:217) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:195) --- Sent from sourceforge.net because [email protected] is subscribed to https://sourceforge.net/p/htmlunit/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. --===============6975324880065443064== MIME-Version: 1.0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: 7bit <div class="markdown_content"><p>We are now using the latest Rhino code. If you still have problems with this please open a rhino issue on github.</p> <hr/> <p><strong> <a class="alink" href="https://sourceforge.net/p/htmlunit/bugs/1961/">[bugs:#1961]</a> Illegal reflective access in htmlunit-core-js-2.28.jar when running in Java 9 and above</strong></p> <p><strong>Status:</strong> accepted<br/> <strong>Group:</strong> 2.30<br/> <strong>Created:</strong> Wed Apr 25, 2018 07:39 AM UTC by Jey<br/> <strong>Last Updated:</strong> Mon May 14, 2018 08:44 AM UTC<br/> <strong>Owner:</strong> RBRi</p> <p>Running java testing application running on Java 10. Warning 'Illegal reflective access' is thrown. <br/> Since Jdk 9, illegal reflective access is allowed but warning is thrown. Illegal reflective access will not be permitted in future release. See:<br/> <a href="http://mail.openjdk.java.net/pipermail/jigsaw-dev/2017-May/012673.html" rel="nofollow">http://mail.openjdk.java.net/pipermail/jigsaw-dev/2017-May/012673.html</a></p> <p>Jdk 8 allows reflective access but jdk 8 end of life date is Jan 2019. <br/> Java 9 EOL is March 2018 and supported Java is now Java 10 up to Sep 2018.<br/> (See <a href="http://www.oracle.com/technetwork/java/eol-135779.html" rel="nofollow">http://www.oracle.com/technetwork/java/eol-135779.html</a>)</p> <p>There is no information when this Illegal reflective access is completely removed from jdk. But when it is removed htmlunit will stop working.</p> <p>The stack trace:</p> <p>WARNING: Illegal reflective access by net.sourceforge.htmlunit.corejs.javascript.NativeArray (file:/lib/htmlunit-core-js-2.28.jar) to field java.util.Arrays$LegacyMergeSort.userRequested<br/> at net.sourceforge.htmlunit.corejs.javascript.NativeArray.<clinit>(NativeArray.java:39)<br/> at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.initSafeStandardObjects(ScriptRuntime.java:186)<br/> at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.initStandardObjects(ScriptRuntime.java:284)<br/> at net.sourceforge.htmlunit.corejs.javascript.Context.initStandardObjects(Context.java:1241)<br/> at net.sourceforge.htmlunit.corejs.javascript.Context.initStandardObjects(Context.java:1177)<br/> at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.init(JavaScriptEngine.java:210)<br/> at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$000(JavaScriptEngine.java:105)<br/> at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$1.run(JavaScriptEngine.java:174)<br/> at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:599)<br/> at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:527)<br/> at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.initialize(JavaScriptEngine.java:185)<br/> at com.gargoylesoftware.htmlunit.WebClient.initialize(WebClient.java:1073)<br/> at com.gargoylesoftware.htmlunit.WebWindowImpl.setEnclosedPage(WebWindowImpl.java:146)<br/> at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:217)<br/> at com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:195)</clinit></p> <hr/> <p>Sent from sourceforge.net because htmlunit-develop<a class="user-mention" href="https://sourceforge.net/u/lists/">@lists</a>.sourceforge.net is subscribed to <a href="https://sourceforge.net/p/htmlunit/bugs/">https://sourceforge.net/p/htmlunit/bugs/</a></p> <p>To unsubscribe from further messages, a project admin can change settings at <a href="https://sourceforge.net/p/htmlunit/admin/bugs/options.">https://sourceforge.net/p/htmlunit/admin/bugs/options.</a> Or, if this is a mailing list, you can unsubscribe from the mailing list.</p></div> --===============6975324880065443064==-- --===============3034092142400010704==-- --===============6482656934685260973== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============6482656934685260973== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ HtmlUnit-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/htmlunit-develop --===============6482656934685260973==--