changeset 382:ac5f0286809d

Interim fix to work around new javax.lang.model API
author jjg
date Wed, 20 Feb 2013 18:30:14 -0800
parents 9414134ce0c2
children c3b07cd54a68
files src/share/jaxws_classes/com/sun/tools/internal/jxc/model/nav/ApNavigator.java
diffstat 1 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/jaxws_classes/com/sun/tools/internal/jxc/model/nav/ApNavigator.java	Wed Feb 13 13:07:53 2013 -0800
+++ b/src/share/jaxws_classes/com/sun/tools/internal/jxc/model/nav/ApNavigator.java	Wed Feb 20 18:30:14 2013 -0800
@@ -31,7 +31,9 @@
 import com.sun.xml.internal.bind.v2.model.nav.Navigator;
 import com.sun.xml.internal.bind.v2.runtime.Location;
 
+import java.lang.annotation.Annotation;
 import javax.annotation.processing.ProcessingEnvironment;
+import javax.lang.model.element.AnnotationMirror;
 import javax.lang.model.element.Element;
 import javax.lang.model.element.ElementKind;
 import javax.lang.model.element.ExecutableElement;
@@ -372,6 +374,22 @@
         public TypeKind getKind() {
             throw new IllegalStateException();
         }
+
+        @Override
+    	public List<? extends AnnotationMirror> getAnnotationMirrors() {
+            throw new IllegalStateException();
+        }
+
+        @Override
+        public <A extends Annotation> A getAnnotation(Class<A> annotationType) {
+            throw new IllegalStateException();
+        }
+
+        @Override
+    	public <A extends Annotation> A[] getAnnotationsByType(Class<A> annotationType) {
+            throw new IllegalStateException();
+        }
+
     };
 
     public Location getClassLocation(TypeElement typeElement) {