diff options
author | schinz <schinz@epfl.ch> | 2003-08-08 12:31:26 +0000 |
---|---|---|
committer | schinz <schinz@epfl.ch> | 2003-08-08 12:31:26 +0000 |
commit | 17ec08ec2f9486b3b7fe54428aa857379cc4a66d (patch) | |
tree | 574cb3dfb39aa56ea359fca66b95b211b04ba1fe /sources/scalac/transformer | |
parent | 7cef1c5c757676a946e6680312be133427c9ef1b (diff) | |
download | scala-17ec08ec2f9486b3b7fe54428aa857379cc4a66d.tar.gz scala-17ec08ec2f9486b3b7fe54428aa857379cc4a66d.tar.bz2 scala-17ec08ec2f9486b3b7fe54428aa857379cc4a66d.zip |
- bug fix: before replacing the symbol for a ca...
- bug fix: before replacing the symbol for a call to "super", check that
is really exists
Diffstat (limited to 'sources/scalac/transformer')
-rw-r--r-- | sources/scalac/transformer/AddInterfaces.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/scalac/transformer/AddInterfaces.java b/sources/scalac/transformer/AddInterfaces.java index ec18661c8c..69c9bf0a58 100644 --- a/sources/scalac/transformer/AddInterfaces.java +++ b/sources/scalac/transformer/AddInterfaces.java @@ -158,7 +158,7 @@ class AddInterfaces extends Transformer { Symbol sym = tree.symbol(); Symbol classOwner = phase.getClassSymbol(sym.owner()); Map ownerMemberMap = phase.getClassMemberMap(classOwner); - if (ownerMemberMap != null) { + if (ownerMemberMap != null && ownerMemberMap.containsKey(sym)) { Symbol newSym = (Symbol)ownerMemberMap.get(sym); return gen.Select(((Select)tree).qualifier, newSym); } else |