]> source.dussan.org Git - aspectj.git/commitdiff
Fixed bugs introduced in 1.1rc2, where cast of message was incorrect.
authormkersten <mkersten>
Wed, 9 Jul 2003 07:47:32 +0000 (07:47 +0000)
committermkersten <mkersten>
Wed, 9 Jul 2003 07:47:32 +0000 (07:47 +0000)
ajde/src/org/aspectj/ajde/ui/swing/CompilerMessagesCellRenderer.java

index 809c9cc82e303782a6985f8367d6e8422b8a2041..650eaaae53f20120644624962ec96181386d7ce5 100644 (file)
@@ -37,14 +37,14 @@ public class CompilerMessagesCellRenderer extends JLabel implements ListCellRend
             String label = "<no message>";
             String detail = null;
             IMessage.Kind kind = IMessage.INFO;
-            if (value instanceof CompilerMessage) {
-                CompilerMessage cm = (CompilerMessage) value;
-                label = cm.message.getMessage();
+            if (value instanceof IMessage) {
+                               IMessage cm = (IMessage) value;
+                label = cm.getMessage();
                 if (LangUtil.isEmpty(label)) {
-                    label = cm.message.toString();
+                    label = cm.getMessage().toString();
                 }
-                kind = cm.message.getKind();
-                Throwable thrown = cm.message.getThrown();
+                kind = cm.getKind();
+                Throwable thrown = cm.getThrown();
                 if (null != thrown) {
                     detail = LangUtil.renderException(thrown);
                 }