diff --git a/classlib/java.base/src/main/java/de/mirkosertic/bytecoder/classlib/java/lang/TClass.java b/classlib/java.base/src/main/java/de/mirkosertic/bytecoder/classlib/java/lang/TClass.java index c661844fa..7376eb2ef 100644 --- a/classlib/java.base/src/main/java/de/mirkosertic/bytecoder/classlib/java/lang/TClass.java +++ b/classlib/java.base/src/main/java/de/mirkosertic/bytecoder/classlib/java/lang/TClass.java @@ -73,6 +73,10 @@ public String getCanonicalName() { return getName(); } + public boolean isMemberClass() { + return false; + } + public boolean isEnum() { return false; } @@ -281,4 +285,6 @@ public T cast(final Object obj) { //noinspection unchecked return (T) obj; } + + } \ No newline at end of file diff --git a/classlib/java.base/src/main/java/de/mirkosertic/bytecoder/classlib/java/lang/reflect/TConstructor.java b/classlib/java.base/src/main/java/de/mirkosertic/bytecoder/classlib/java/lang/reflect/TConstructor.java index 78cc23d4b..ad362864b 100644 --- a/classlib/java.base/src/main/java/de/mirkosertic/bytecoder/classlib/java/lang/reflect/TConstructor.java +++ b/classlib/java.base/src/main/java/de/mirkosertic/bytecoder/classlib/java/lang/reflect/TConstructor.java @@ -32,4 +32,11 @@ public TConstructor(final Class clz, final Class[] signature) { public Object newInstance(final Object[] constructorArgs) { return VM.newInstanceFromDefaultConstructor(clz); } + + public void setAccessible(final boolean a){ + } + + public boolean isAccessible() { + return true; + } } diff --git a/classlib/java.base/src/main/java/de/mirkosertic/bytecoder/classlib/java/lang/reflect/TField.java b/classlib/java.base/src/main/java/de/mirkosertic/bytecoder/classlib/java/lang/reflect/TField.java index 246804842..907525cf8 100644 --- a/classlib/java.base/src/main/java/de/mirkosertic/bytecoder/classlib/java/lang/reflect/TField.java +++ b/classlib/java.base/src/main/java/de/mirkosertic/bytecoder/classlib/java/lang/reflect/TField.java @@ -20,6 +20,7 @@ import java.lang.reflect.Field; import java.lang.reflect.Modifier; +import java.lang.reflect.Type; @SubstitutesInClass(completeReplace = true) public class TField { @@ -74,4 +75,15 @@ public void set(final Object o, final Object value) { public Class getType() { return type; } + + public boolean isAccessible() { + return true; + } + + public void setAccessible(final boolean a){ + } + + public Type getGenericType() { + return null; + } }