Improve validation.
This commit is contained in:
@@ -227,8 +227,9 @@ public class luajc {
|
|||||||
String classname = key.replace('/', '.');
|
String classname = key.replace('/', '.');
|
||||||
try {
|
try {
|
||||||
Class c = loader.loadClass(classname);
|
Class c = loader.loadClass(classname);
|
||||||
|
Object o = c.newInstance();
|
||||||
if ( verbose )
|
if ( verbose )
|
||||||
System.out.println(" loaded "+classname+" as "+c.newInstance() );
|
System.out.println(" loaded "+classname+" as "+o );
|
||||||
} catch ( Throwable th ) {
|
} catch ( Throwable th ) {
|
||||||
System.out.flush();
|
System.out.flush();
|
||||||
System.err.println(" failed to load "+classname+": "+th );
|
System.err.println(" failed to load "+classname+": "+th );
|
||||||
|
|||||||
Reference in New Issue
Block a user