mirror of https://github.com/apache/activemq.git
AMQ-9473: Fix IntrospectionSupport to deal with SSLSocket properties
(cherry picked from commit 550cb9b2be
)
This commit is contained in:
parent
dc892d3dfc
commit
9b81a76010
|
@ -169,6 +169,9 @@ public final class IntrospectionSupport {
|
|||
if (target instanceof SSLServerSocket) {
|
||||
// overcome illegal access issues with internal implementation class
|
||||
clazz = SSLServerSocket.class;
|
||||
} else if (target instanceof javax.net.ssl.SSLSocket) {
|
||||
// overcome illegal access issues with internal implementation class
|
||||
clazz = javax.net.ssl.SSLSocket.class;
|
||||
}
|
||||
Method setter = findSetterMethod(clazz, name);
|
||||
if (setter == null) {
|
||||
|
|
|
@ -22,6 +22,7 @@ import java.util.Map;
|
|||
import java.util.Map.Entry;
|
||||
|
||||
import javax.net.ssl.SSLServerSocket;
|
||||
import javax.net.ssl.SSLSocket;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
@ -60,6 +61,9 @@ public final class IntrospectionSupport {
|
|||
if (target instanceof SSLServerSocket) {
|
||||
// overcome illegal access issues with internal implementation class
|
||||
clazz = SSLServerSocket.class;
|
||||
} else if (target instanceof javax.net.ssl.SSLSocket) {
|
||||
// overcome illegal access issues with internal implementation class
|
||||
clazz = javax.net.ssl.SSLSocket.class;
|
||||
}
|
||||
Method setter = findSetterMethod(clazz, name);
|
||||
if (setter == null) {
|
||||
|
|
Loading…
Reference in New Issue