### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core Index: compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java,v retrieving revision 1.305 diff -u -r1.305 Scope.java --- compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java 25 Apr 2007 16:59:24 -0000 1.305 +++ compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java 14 May 2007 14:13:40 -0000 @@ -950,9 +950,7 @@ while (keepLooking) { ReferenceBinding[] itsInterfaces = currentType.superInterfaces(); if (itsInterfaces == null) { // needed for statically imported types which don't know their hierarchy yet - ReferenceBinding sourceType = currentType.isParameterizedType() - ? ((ParameterizedTypeBinding) enclosingType).genericType() - : currentType; + ReferenceBinding sourceType = currentType.isParameterizedType() ? ((ParameterizedTypeBinding) currentType).genericType() : currentType; if (sourceType.isHierarchyBeingConnected()) return null; // looking for an undefined member type in its own superclass ref ((SourceTypeBinding) sourceType).scope.connectTypeHierarchy(); Index: compiler/org/eclipse/jdt/internal/compiler/ast/CompilationUnitDeclaration.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/CompilationUnitDeclaration.java,v retrieving revision 1.69 diff -u -r1.69 CompilationUnitDeclaration.java --- compiler/org/eclipse/jdt/internal/compiler/ast/CompilationUnitDeclaration.java 25 Apr 2007 16:59:23 -0000 1.69 +++ compiler/org/eclipse/jdt/internal/compiler/ast/CompilationUnitDeclaration.java 14 May 2007 14:13:40 -0000 @@ -265,7 +265,11 @@ if (imports != null) for (int i = 0; i < imports.length; i++) { printIndent(indent, output).append("import "); //$NON-NLS-1$ - imports[i].print(0, output).append(";\n"); //$NON-NLS-1$ + ImportReference currentImport = imports[i]; + if (currentImport.isStatic()) { + output.append("static "); //$NON-NLS-1$ + } + currentImport.print(0, output).append(";\n"); //$NON-NLS-1$ } if (types != null) {