implement Class.getClassLoader()

This commit is contained in:
Volker Berlin 2020-05-15 18:27:46 +02:00
parent 6fc9feca70
commit b15cc8b7ae

View File

@ -159,6 +159,12 @@ class ReplacementForClass {
"return" ) "return" )
private static native int getIntFromMemory( int pos ); private static native int getIntFromMemory( int pos );
/**
* Replacement of the Java methods
*/
ClassLoader getClassLoader() {
return null;
}
/** /**
* Replacement of the native Java methods * Replacement of the native Java methods
@ -195,7 +201,7 @@ class ReplacementForClass {
/** /**
* Replacement of the native Java methods. * Replacement of the native Java methods.
*/ */
public boolean desiredAssertionStatus() { boolean desiredAssertionStatus() {
return false; return false;
} }
} }