### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core Index: compiler/org/eclipse/jdt/internal/compiler/lookup/TypeBinding.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/TypeBinding.java,v retrieving revision 1.106 diff -u -r1.106 TypeBinding.java --- compiler/org/eclipse/jdt/internal/compiler/lookup/TypeBinding.java 2 Oct 2009 20:04:28 -0000 1.106 +++ compiler/org/eclipse/jdt/internal/compiler/lookup/TypeBinding.java 2 Dec 2009 17:54:02 -0000 @@ -854,18 +854,22 @@ case Binding.INTERSECTION_TYPE: case Binding.GENERIC_TYPE: return false; - case Binding.PARAMETERIZED_TYPE: + case Binding.PARAMETERIZED_TYPE: if (current.isBoundParameterizedType()) return false; break; case Binding.RAW_TYPE: return true; } - if (current.isStatic()) + if (current.isStatic()) { return true; + } if (current.isLocalType()) { - NestedTypeBinding nestedType = (NestedTypeBinding) current.erasure(); - if (nestedType.scope.methodScope().isStatic) return true; + LocalTypeBinding localTypeBinding = (LocalTypeBinding) current.erasure(); + MethodBinding enclosingMethod = localTypeBinding.enclosingMethod; + if (enclosingMethod != null && enclosingMethod.isStatic()) { + return true; + } } } while ((current = current.enclosingType()) != null); return true;