Charj: Fixed dynamic cast from PointerType to ClassSymbol, which is not valid.
authorJonathan Lifflander <jliffl2@illinois.edu>
Thu, 1 Jul 2010 16:51:52 +0000 (11:51 -0500)
committerJonathan Lifflander <jliffl2@illinois.edu>
Thu, 1 Jul 2010 16:51:52 +0000 (11:51 -0500)
src/langs/charj/src/charj/translator/SymbolResolver.g

index efe6a6fd5f68a84c3aaa5963a4a82e6411ca6d58..3b8fa7af75c444bbcdac4864ae86a89ad71bbbf9 100644 (file)
@@ -237,6 +237,7 @@ primaryExpression returns [Type type]
         {
             Type et = $e.type;
             if (et instanceof ProxyType) et = ((ProxyType)et).baseType;
+            if (et instanceof PointerType) et = ((PointerType)et).baseType;
             ClassSymbol cxt = (ClassSymbol)et;
             Symbol s;
             if (cxt == null) {