Bug 62235 - Java 9 - illegal reflective access by org.apache.jmeter.util.HostNameSetter
Summary: Java 9 - illegal reflective access by org.apache.jmeter.util.HostNameSetter
Status: RESOLVED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: 4.0
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: JMETER_5.0
Assignee: JMeter issues mailing list
URL:
Keywords: FixedInTrunk
Depends on:
Blocks:
 
Reported: 2018-03-30 21:14 UTC by Mateusz Was
Modified: 2018-04-11 16:17 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mateusz Was 2018-03-30 21:14:16 UTC
Every time I run a test script on Java 9 I get following output.
Oracle Java 9.0.4, Ubuntu 16.04, ran in Docker container (same Java and OS).

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.jmeter.util.HostNameSetter (file:/opt/apache-jmeter-4.0/lib/ext/ApacheJMeter_core.jar) to method sun.security.ssl.SSLSocketImpl.setHost(java.lang.String)
WARNING: Please consider reporting this to the maintainers of org.apache.jmeter.util.HostNameSetter
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Comment 1 Philippe Mouawad 2018-04-11 16:17:36 UTC
Author: pmouawad
Date: Sat Apr  7 19:50:06 2018
New Revision: 1828614

URL: http://svn.apache.org/viewvc?rev=1828614&view=rev
Log:
Bug 58757: Fix deprecated methods of HTTPCLIENT after migration to httpclient-4.5.X
Drop useless code
Bugzilla Id: 58757

Removed:
    jmeter/trunk/src/core/org/apache/jmeter/util/HostNameSetter.java
Modified:
    jmeter/trunk/src/core/org/apache/jmeter/util/SlowSSLSocket.java
Comment 2 The ASF infrastructure team 2022-09-24 20:38:12 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4728