Bug 62235

Summary: Java 9 - illegal reflective access by org.apache.jmeter.util.HostNameSetter
Product: JMeter - Now in Github Reporter: Mateusz Was <m.was>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: normal CC: p.mouawad
Priority: P2 Keywords: FixedInTrunk
Version: 4.0   
Target Milestone: JMETER_5.0   
Hardware: PC   
OS: Linux   

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