*** empty log message ***
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ClassScope.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ClassScope.java
index 02a39d2..468c9ee 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ClassScope.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ClassScope.java
@@ -744,12 +744,9 @@
superType = (ReferenceBinding) typeOrPackage;
compilationUnitScope().addTypeReference(superType);
- if (checkVisibility && n == size) { // if we're finished and know the final superinterface then check visibility
- SourceTypeBinding enclosingSourceType = enclosingSourceType();
- if (enclosingSourceType == null
- ? !superType.canBeSeenBy(sourceType.fPackage)
- : !superType.canBeSeenBy(sourceType, enclosingSourceType))
- return new ProblemReferenceBinding(CharOperation.subarray(compoundName, 0, n), NotVisible);
+ if (checkVisibility && n == size) { // if we're finished and know the final supertype then check visibility
+ if (!superType.canBeSeenBy(sourceType.fPackage)) // its a toplevel type so just check package access
+ return new ProblemReferenceBinding(CharOperation.subarray(compoundName, 0, n), NotVisible);
}
}
@@ -775,6 +772,7 @@
}
return superType;
}
+
/* Answer the problem reporter to use for raising new problems.
*
* Note that as a side-effect, this updates the current reference context
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/DefaultProblem.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/DefaultProblem.java
index 96abfc5..8299387 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/DefaultProblem.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/DefaultProblem.java
@@ -111,7 +111,7 @@
//resize underneathto remove 'null' chars
System.arraycopy(underneath, 0, underneath = new char[pos], 0, pos);
- return Util.bind("problem.atLine"/*nonNLS*/,String.valueOf(line)) +
+ return " " + Util.bind("problem.atLine"/*nonNLS*/,String.valueOf(line)) +
"\n\t"/*nonNLS*/ + new String(extract) + "\n\t"/*nonNLS*/ + new String(underneath);
}
/**