### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core Index: dom/org/eclipse/jdt/core/dom/TypeBinding.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TypeBinding.java,v retrieving revision 1.150 diff -u -r1.150 TypeBinding.java --- dom/org/eclipse/jdt/core/dom/TypeBinding.java 7 Jan 2011 15:10:23 -0000 1.150 +++ dom/org/eclipse/jdt/core/dom/TypeBinding.java 7 Apr 2011 15:35:22 -0000 @@ -177,7 +177,6 @@ public ITypeBinding getGenericTypeOfWildcardType() { switch (this.binding.kind()) { case Binding.WILDCARD_TYPE : - case Binding.INTERSECTION_TYPE : WildcardBinding wildcardBinding = (WildcardBinding) this.binding; if (wildcardBinding.genericType != null) { return this.resolver.getTypeBinding(wildcardBinding.genericType); #P org.eclipse.jdt.core.tests.model Index: src/org/eclipse/jdt/core/tests/dom/ASTConverter17Test.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/Attic/ASTConverter17Test.java,v retrieving revision 1.1.2.4 diff -u -r1.1.2.4 ASTConverter17Test.java --- src/org/eclipse/jdt/core/tests/dom/ASTConverter17Test.java 1 Apr 2011 16:37:58 -0000 1.1.2.4 +++ src/org/eclipse/jdt/core/tests/dom/ASTConverter17Test.java 7 Apr 2011 15:35:22 -0000 @@ -427,5 +427,6 @@ checkSourceRange(type, "ExceptionA | ExceptionB", contents); ITypeBinding typeBinding = type.resolveBinding(); assertNotNull("No binding", typeBinding); + assertNull("This should be null for intersection type", typeBinding.getGenericTypeOfWildcardType()); } }