Fixed LuaJC not writing java package to bytecode correctly

This commit is contained in:
Thomas Cashman
2018-12-18 18:21:03 +00:00
parent e61e5694fa
commit 0e0533e2e6
2 changed files with 21 additions and 2 deletions

View File

@@ -189,8 +189,10 @@ public class luajc {
public Class findClass(String classname) throws ClassNotFoundException {
byte[] bytes = (byte[]) t.get(classname);
if ( bytes != null )
if ( bytes != null ) {
classname = classname.replace('/', '.');
return defineClass(classname, bytes, 0, bytes.length);
}
return super.findClass(classname);
}
}