From a57d3020f963b253a5344a3f0478409976640997 Mon Sep 17 00:00:00 2001 From: Volker Berlin Date: Sun, 23 Feb 2020 17:50:23 +0100 Subject: [PATCH] fix wrong debug information --- src/de/inetsoftware/jwebassembly/module/ModuleGenerator.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/de/inetsoftware/jwebassembly/module/ModuleGenerator.java b/src/de/inetsoftware/jwebassembly/module/ModuleGenerator.java index 3f43540..c464b59 100644 --- a/src/de/inetsoftware/jwebassembly/module/ModuleGenerator.java +++ b/src/de/inetsoftware/jwebassembly/module/ModuleGenerator.java @@ -193,6 +193,7 @@ public class ModuleGenerator { FunctionName next; NEXT: while( (next = functions.nextScannLater()) != null ) { + className = next.className; if( next instanceof SyntheticFunctionName ) { JWebAssembly.LOGGER.fine( '\t' + next.methodName + next.signature ); SyntheticFunctionName synth = (SyntheticFunctionName)next; @@ -209,6 +210,8 @@ public class ModuleGenerator { MethodInfo method = null; ClassFile classFile = classFileLoader.get( next.className ); if( classFile != null ) { + sourceFile = classFile.getSourceFile(); + className = classFile.getThisClass().getName(); method = classFile.getMethod( next.methodName, next.signature ); } if( method == null ) {