mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
6980017: javap -XDdetail:source behaves badly if source not available
Reviewed-by: ksrini
This commit is contained in:
parent
de9921986c
commit
98f8b67c3a
3 changed files with 85 additions and 1 deletions
|
@ -99,7 +99,10 @@ public class SourceWriter extends InstructionDetailWriter {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public boolean hasSource() {
|
||||
return (sourceLines.length > 0);
|
||||
}
|
||||
|
||||
private void setLineMap(Code_attribute attr) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue