openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1621066 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/OwbTypeVariableImpl.java
Date Thu, 28 Aug 2014 07:15:38 GMT
Author: struberg
Date: Thu Aug 28 07:15:38 2014
New Revision: 1621066

URL: http://svn.apache.org/r1621066
Log:
OWB-993 add missing methods for Java8

This is not yet finished, I just added the stubs...

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/OwbTypeVariableImpl.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/OwbTypeVariableImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/OwbTypeVariableImpl.java?rev=1621066&r1=1621065&r2=1621066&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/OwbTypeVariableImpl.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/OwbTypeVariableImpl.java
Thu Aug 28 07:15:38 2014
@@ -18,6 +18,8 @@
  */
 package org.apache.webbeans.config;
 
+import java.lang.annotation.Annotation;
+import java.lang.reflect.AnnotatedType;
 import java.lang.reflect.GenericDeclaration;
 import java.lang.reflect.Type;
 import java.lang.reflect.TypeVariable;
@@ -97,6 +99,34 @@ public class OwbTypeVariableImpl<G exten
        
     }
 
+    /** from JDK-1.8 thus no at-Override yet */
+    public AnnotatedType[] getAnnotatedBounds()
+    {
+        //X TODO implement this properly
+        return new AnnotatedType[0];
+    }
+
+    /** from JDK-1.8 thus no at-Override yet */
+    public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
+    {
+        //X TODO implement this properly
+        return null;
+    }
+
+    /** from JDK-1.8 thus no at-Override yet */
+    public Annotation[] getAnnotations()
+    {
+        //X TODO implement this properly
+        return new Annotation[0];
+    }
+
+    /** from JDK-1.8 thus no at-Override yet */
+    public Annotation[] getDeclaredAnnotations()
+    {
+        //X TODO implement this properly
+        return new Annotation[0];
+    }
+
     public String toString()
     {
         StringBuilder buffer = new StringBuilder();



Mime
View raw message