Bug 384992 - [java8] adopt grammar changes for Java 8 from JDT/Core
- readable name for one more NT, fixes GenericTypeTest#test1403()
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/readableNames.props b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/readableNames.props
index 0b59259..c37ddaf 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/readableNames.props
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/readableNames.props
@@ -24,6 +24,7 @@
 AnnotationTypeMemberDeclaration=AnnotationTypeMemberDeclaration
 AnnotationTypeMemberDeclarations=AnnotationTypeMemberDeclarations
 AnnotationTypeMemberDeclarationsopt=AnnotationTypeMemberDeclarations
+AnyTypeAnchor=typeAnchor
 ArgumentList=ArgumentList
 ArgumentListopt=ArgumentList
 Arguments=Arguments
diff --git a/org.eclipse.jdt.core/grammar/java.g b/org.eclipse.jdt.core/grammar/java.g
index 534119e..5d85a35 100644
--- a/org.eclipse.jdt.core/grammar/java.g
+++ b/org.eclipse.jdt.core/grammar/java.g
@@ -2639,7 +2639,9 @@
 
 
 AnyTypeAnchor -> TypeAnchor
+/:$readableName typeAnchor:/
 AnyTypeAnchor -> TentativeTypeAnchor
+/:$readableName typeAnchor:/
 
 -- this rule could indicate either a type anchor or a type annotation
 TentativeTypeAnchor ::= '@OT' UnannotatableName