Skip to content

Commit

Permalink
Added missed methods to make gdx-backend-bytecoder work (#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
CoenRijsdijk authored Jul 1, 2021
1 parent ab84b7e commit 1f30772
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ public String getCanonicalName() {
return getName();
}

public boolean isMemberClass() {
return false;
}

public boolean isEnum() {
return false;
}
Expand Down Expand Up @@ -281,4 +285,6 @@ public <T> T cast(final Object obj) {
//noinspection unchecked
return (T) obj;
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
}
}

0 comments on commit 1f30772

Please sign in to comment.