import eclipse 3.1 M4 compiler
[org.ibex.tool.git] / src / org / eclipse / jdt / internal / compiler / ast / SuperReference.java
index a877d12..9519a34 100644 (file)
@@ -54,7 +54,7 @@ public class SuperReference extends ThisReference {
                if (!checkAccess(scope.methodScope()))
                        return null;
                SourceTypeBinding enclosingTb = scope.enclosingSourceType();
-               if (enclosingTb.id == T_Object) {
+               if (enclosingTb.id == T_JavaLangObject) {
                        scope.problemReporter().cannotUseSuperInJavaLangObject(this);
                        return null;
                }