diff options
Diffstat (limited to 'src/main/javassist/compiler/Javac.java')
-rw-r--r-- | src/main/javassist/compiler/Javac.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/javassist/compiler/Javac.java b/src/main/javassist/compiler/Javac.java index 6e67ab66..63da50a6 100644 --- a/src/main/javassist/compiler/Javac.java +++ b/src/main/javassist/compiler/Javac.java @@ -94,7 +94,8 @@ public class Javac { * @see #recordProceed(String,String) */ public CtMember compile(String src) throws CompileError { - Parser p = new Parser(new Lex(src)); + int startLine = gen.thisClass.getLinesCount(); + Parser p = new Parser(new Lex(src, startLine)); ASTList mem = p.parseMember1(stable); try { if (mem instanceof FieldDecl) |