diff --git a/pom.xml b/pom.xml
index db44df7..0e6ddfc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -10,11 +10,11 @@
org.jboss.spec.javax.annotation
- jboss-annotations-api_1.1_spec
- 1.0.2.Final-SNAPSHOT
+ jboss-annotations-api_1.2_spec
+ 1.0.0.Final-SNAPSHOT
jar
- Common Annotations 1.1 API
+ Common Annotations 1.2 API
JSR 250: Common Annotations for the Java(TM) Platform
@@ -82,10 +82,10 @@
JSR 250: Common Annotations for the Java(TM) Platform
Oracle
- 1.1
+ 1.2
- javax.annotation*;version=1.1
+ javax.annotation*;version=1.2
@@ -109,7 +109,7 @@
JSR 250: Common Annotations for the Java(TM) Platform
Oracle
- 1.1
+ 1.2
diff --git a/src/main/java/javax/annotation/Priority.java b/src/main/java/javax/annotation/Priority.java
new file mode 100644
index 0000000..babdd1f
--- /dev/null
+++ b/src/main/java/javax/annotation/Priority.java
@@ -0,0 +1,15 @@
+package javax.annotation;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+@Target(TYPE)
+@Retention(RUNTIME)
+@Documented
+public @interface Priority {
+ int value();
+}
diff --git a/src/main/java/javax/annotation/Resource.java b/src/main/java/javax/annotation/Resource.java
index 6ac4343..b8dfdd8 100644
--- a/src/main/java/javax/annotation/Resource.java
+++ b/src/main/java/javax/annotation/Resource.java
@@ -78,7 +78,7 @@
* For class annotations, there is no default and this must be
* specified.
*/
- Class type() default java.lang.Object.class;
+ Class> type() default java.lang.Object.class;
/**
* The two possible authentication types for a resource.