mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +01:00
replace Java 11 forName() with Module parameter
This commit is contained in:
parent
67018ee8e9
commit
57616e2a56
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2020 - 2022 Volker Berlin (i-net software)
|
Copyright 2020 - 2023 Volker Berlin (i-net software)
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
@ -205,6 +205,20 @@ class ReplacementForClass<T> {
|
|||||||
return forName( name );
|
return forName( name );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Replacement of the Java 9 method forName(Module,String)
|
||||||
|
*
|
||||||
|
* @param module
|
||||||
|
* the module
|
||||||
|
* @param name
|
||||||
|
* the fully qualified name of the desired class.
|
||||||
|
* @return the {@code Class} object for the class with the specified name.
|
||||||
|
*/
|
||||||
|
@Replace( "java/lang/Class.forName(Ljava/lang/Module;Ljava/lang/String;)Ljava/lang/Class;" )
|
||||||
|
public static Class<?> forName( Object module, String name ) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Replacement of the Java method newInstance()
|
* Replacement of the Java method newInstance()
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user