Add package path to Java source files

This commit is contained in:
Volker Berlin 2019-04-02 20:58:01 +02:00
parent cba37f1cef
commit 76435a76b9

View File

@ -400,7 +400,10 @@ public class BinaryModuleWriter extends ModuleWriter implements InstructionOpcod
@Override
protected void writeMethodStart( FunctionName name, String sourceFile ) throws IOException {
function = getFunction( name );
this.javaSourceFile = sourceFile;
if( createSourceMap ) {
int idx = name.className.lastIndexOf( '/' );
this.javaSourceFile = name.className.substring( 0, idx + 1 ) + sourceFile;
}
functionType = new FunctionTypeEntry();
codeStream.reset();
locals.clear();