View | Details | Raw Unified | Return to bug 186749
Collapse All | Expand All

(-)compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java (-3 / +1 lines)
Lines 950-958 Link Here
950
		while (keepLooking) {
950
		while (keepLooking) {
951
			ReferenceBinding[] itsInterfaces = currentType.superInterfaces();
951
			ReferenceBinding[] itsInterfaces = currentType.superInterfaces();
952
			if (itsInterfaces == null) { // needed for statically imported types which don't know their hierarchy yet
952
			if (itsInterfaces == null) { // needed for statically imported types which don't know their hierarchy yet
953
				ReferenceBinding sourceType = currentType.isParameterizedType()
953
				ReferenceBinding sourceType = currentType.isParameterizedType() ? ((ParameterizedTypeBinding) currentType).genericType() : currentType;
954
					? ((ParameterizedTypeBinding) enclosingType).genericType()
955
					: currentType;
956
				if (sourceType.isHierarchyBeingConnected())
954
				if (sourceType.isHierarchyBeingConnected())
957
					return null; // looking for an undefined member type in its own superclass ref
955
					return null; // looking for an undefined member type in its own superclass ref
958
				((SourceTypeBinding) sourceType).scope.connectTypeHierarchy();
956
				((SourceTypeBinding) sourceType).scope.connectTypeHierarchy();
(-)compiler/org/eclipse/jdt/internal/compiler/ast/CompilationUnitDeclaration.java (-1 / +5 lines)
Lines 265-271 Link Here
265
		if (imports != null)
265
		if (imports != null)
266
			for (int i = 0; i < imports.length; i++) {
266
			for (int i = 0; i < imports.length; i++) {
267
				printIndent(indent, output).append("import "); //$NON-NLS-1$
267
				printIndent(indent, output).append("import "); //$NON-NLS-1$
268
				imports[i].print(0, output).append(";\n"); //$NON-NLS-1$
268
				ImportReference currentImport = imports[i];
269
				if (currentImport.isStatic()) {
270
					output.append("static "); //$NON-NLS-1$
271
				}
272
				currentImport.print(0, output).append(";\n"); //$NON-NLS-1$
269
			}
273
			}
270
274
271
		if (types != null) {
275
		if (types != null) {

Return to bug 186749