Update java.lang.annotation emulation with new Java 8 APIs

Bug: #9308
Bug-Link: https://github.com/gwtproject/gwt/issues/9308
Change-Id: I9afecbac1288968d293250218cbec36d128d46f8
diff --git a/user/super/com/google/gwt/emul/java/lang/annotation/ElementType.java b/user/super/com/google/gwt/emul/java/lang/annotation/ElementType.java
index adca409..4d09dc7 100644
--- a/user/super/com/google/gwt/emul/java/lang/annotation/ElementType.java
+++ b/user/super/com/google/gwt/emul/java/lang/annotation/ElementType.java
@@ -17,10 +17,10 @@
 
 /**
  * Enumerates types of declared elements in a Java program <a
- * href="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/annotation/ElementType.html">[Sun
+ * href="https://docs.oracle.com/javase/8/docs/api/java/lang/annotation/ElementType.html">[Oracle
  * docs]</a>.
  */
 public enum ElementType {
   ANNOTATION_TYPE, CONSTRUCTOR, FIELD, LOCAL_VARIABLE, METHOD, PACKAGE,
-  PARAMETER, TYPE,
+  PARAMETER, TYPE, TYPE_PARAMETER, TYPE_USE,
 }
diff --git a/user/super/com/google/gwt/emul/java/lang/annotation/Native.java b/user/super/com/google/gwt/emul/java/lang/annotation/Native.java
new file mode 100644
index 0000000..da1a3fe
--- /dev/null
+++ b/user/super/com/google/gwt/emul/java/lang/annotation/Native.java
@@ -0,0 +1,27 @@
+/*
+ * Copyright 2016 Google Inc.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package java.lang.annotation;
+
+/**
+ * Indicates that a field defining a constant value may be referenced from native code. <a
+ * href="https://docs.oracle.com/javase/8/docs/api/java/lang/annotation/Native.html">[Oracle
+ * docs]</a>
+ */
+@Documented
+@Target(ElementType.FIELD)
+@Retention(RetentionPolicy.SOURCE)
+public @interface Native {
+}
diff --git a/user/super/com/google/gwt/emul/java/lang/annotation/Repeatable.java b/user/super/com/google/gwt/emul/java/lang/annotation/Repeatable.java
new file mode 100644
index 0000000..eac660e
--- /dev/null
+++ b/user/super/com/google/gwt/emul/java/lang/annotation/Repeatable.java
@@ -0,0 +1,28 @@
+/*
+ * Copyright 2016 Google Inc.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package java.lang.annotation;
+
+/**
+ * Indicates that the annotation type whose declaration it (meta-)annotates is repeatable. <a
+ * href="https://docs.oracle.com/javase/8/docs/api/java/lang/annotation/Repeatable.html">[Oracle
+ * docs]</a>
+ */
+@Documented
+@Target(ElementType.ANNOTATION_TYPE)
+@Retention(RetentionPolicy.RUNTIME)
+public @interface Repeatable {
+  Class<? extends Annotation> value();
+}