Dieser Commit ist enthalten in:
Ursprung
ea9b11c263
Commit
f4e2051ec0
@ -156,7 +156,10 @@ public final class Reflection {
|
|||||||
@Override
|
@Override
|
||||||
public void set(Object target, Object value) {
|
public void set(Object target, Object value) {
|
||||||
try {
|
try {
|
||||||
field.set(target, value);
|
if(field.getDeclaringClass() == int.class)
|
||||||
|
field.setInt(target, (int)value);
|
||||||
|
else
|
||||||
|
field.set(target, value);
|
||||||
} catch (IllegalAccessException e) {
|
} catch (IllegalAccessException e) {
|
||||||
throw new IllegalArgumentException("Cannot access reflection.", e);
|
throw new IllegalArgumentException("Cannot access reflection.", e);
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren