mirror of https://github.com/apache/activemq.git
[AMQ-7121] Set setter accessible (for JDK 11)
This commit is contained in:
parent
937c31e036
commit
88525ce650
|
@ -175,6 +175,9 @@ public final class IntrospectionSupport {
|
|||
return false;
|
||||
}
|
||||
|
||||
// JDK 11: class or setter might not be publicly accessible
|
||||
setter.setAccessible(true);
|
||||
|
||||
// If the type is null or it matches the needed type, just use the
|
||||
// value directly
|
||||
if (value == null || value.getClass() == setter.getParameterTypes()[0]) {
|
||||
|
|
|
@ -64,6 +64,9 @@ public final class IntrospectionSupport {
|
|||
return false;
|
||||
}
|
||||
|
||||
// JDK 11: class or setter might not be publicly accessible
|
||||
setter.setAccessible(true);
|
||||
|
||||
// If the type is null or it matches the needed type, just use the
|
||||
// value directly
|
||||
if (value == null || value.getClass() == setter.getParameterTypes()[0]) {
|
||||
|
|
Loading…
Reference in New Issue