mirror of https://github.com/apache/activemq.git
Merge pull request #545 from jbonofre/AMQ-7121
[AMQ-7121] Set setter accessible (for JDK 11)
This commit is contained in:
commit
f4dbb74048
|
@ -175,6 +175,9 @@ public final class IntrospectionSupport {
|
||||||
return false;
|
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
|
// If the type is null or it matches the needed type, just use the
|
||||||
// value directly
|
// value directly
|
||||||
if (value == null || value.getClass() == setter.getParameterTypes()[0]) {
|
if (value == null || value.getClass() == setter.getParameterTypes()[0]) {
|
||||||
|
|
|
@ -64,6 +64,9 @@ public final class IntrospectionSupport {
|
||||||
return false;
|
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
|
// If the type is null or it matches the needed type, just use the
|
||||||
// value directly
|
// value directly
|
||||||
if (value == null || value.getClass() == setter.getParameterTypes()[0]) {
|
if (value == null || value.getClass() == setter.getParameterTypes()[0]) {
|
||||||
|
|
Loading…
Reference in New Issue