6980017: javap -XDdetail:source behaves badly if source not available

Reviewed-by: ksrini
This commit is contained in:
Jonathan Gibbons 2010-08-26 16:13:33 -07:00
parent de9921986c
commit 98f8b67c3a
3 changed files with 85 additions and 1 deletions

View file

@ -99,7 +99,10 @@ public class SourceWriter extends InstructionDetailWriter {
}
}
}
}
public boolean hasSource() {
return (sourceLines.length > 0);
}
private void setLineMap(Code_attribute attr) {