From ab6e0b35fe9524e4a6c1ceff58ca0cc198a54c48 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Thu, 13 Mar 2003 16:18:29 +0000 Subject: *** empty log message *** --- sources/scalac/symtab/Symbol.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sources/scalac/symtab/Symbol.java') diff --git a/sources/scalac/symtab/Symbol.java b/sources/scalac/symtab/Symbol.java index 2b31c87b96..1a3b5e2073 100644 --- a/sources/scalac/symtab/Symbol.java +++ b/sources/scalac/symtab/Symbol.java @@ -740,7 +740,9 @@ public abstract class Symbol implements Modifiers, Kinds { if (isVariable()) return "variable"; else if (isModule()) return "module"; else if (isConstructor()) return "constructor"; - else if (isInitializedMethod()) return "method"; + else if (isInitializedMethod() && + (Global.instance.debug || (flags & STABLE) == 0) ) + return "method"; else return "value"; default: return ""; } @@ -856,7 +858,7 @@ public abstract class Symbol implements Modifiers, Kinds { default: if (symtype.isSubType(sym1type)) return sym1; else { - if (Type.debugSwitch) System.out.println(this + locationString() + " does not override " + sym1 + sym1.locationString() + ", since " + symtype + " !<= " + sym1type);//DEBUG + if (Global.instance.debug) System.out.println(this + locationString() + " does not override " + sym1 + sym1.locationString() + ", since " + symtype + " !<= " + sym1type);//DEBUG return Symbol.NONE; } } -- cgit v1.2.3