Ensure that the OPTIONS annotation uses the correct value for the meta HttpMethod annotation. svn path=/trunk/; revision=561
diff --git a/src/jsr311-api/src/javax/ws/rs/HttpMethod.java b/src/jsr311-api/src/javax/ws/rs/HttpMethod.java index aa6f62b..2054233 100644 --- a/src/jsr311-api/src/javax/ws/rs/HttpMethod.java +++ b/src/jsr311-api/src/javax/ws/rs/HttpMethod.java
@@ -63,6 +63,10 @@ * HTTP HEAD method */ public static final String HEAD="HEAD"; + /** + * HTTP OPTIONS method + */ + public static final String OPTIONS="OPTIONS"; /** * Specifies the name of a HTTP method. E.g. "GET".
diff --git a/src/jsr311-api/src/javax/ws/rs/OPTIONS.java b/src/jsr311-api/src/javax/ws/rs/OPTIONS.java index 15c96f5..cae832c 100644 --- a/src/jsr311-api/src/javax/ws/rs/OPTIONS.java +++ b/src/jsr311-api/src/javax/ws/rs/OPTIONS.java
@@ -30,6 +30,6 @@ */ @Target({ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) -@HttpMethod(HttpMethod.DELETE) +@HttpMethod(HttpMethod.OPTIONS) public @interface OPTIONS { }