6852856: javap changes to facilitate subclassing javap for variants

Reviewed-by: mcimadamore
This commit is contained in:
Jonathan Gibbons 2009-06-19 11:40:47 -07:00
parent 3b51e6ae0d
commit b62ac9c58c
7 changed files with 183 additions and 59 deletions

View file

@ -134,6 +134,9 @@ public class SourceWriter extends InstructionDetailWriter {
}
private String readSource(ClassFile cf) {
if (fileManager == null)
return null;
Location location;
if (fileManager.hasLocation((StandardLocation.SOURCE_PATH)))
location = StandardLocation.SOURCE_PATH;