Ranides Atterwim 3 tahun lalu
induk
melakukan
8910f4de7c

+ 12 - 2
assira.core/src/main/java/net/ranides/assira/annotations/Meta.java

@@ -76,8 +76,8 @@ public final class Meta {
      * For example:
      * <ul>
      *      <li>method uses unchecked casts inside</li>
-     *      <li>method has undefined behaviour in special conditions</li>
-     *      <li>exposes interal array</li>
+     *      <li>method has undefined behaviour under special conditions</li>
+     *      <li>exposes internal array</li>
      *      <li>can cause race conditions</li>
      *      <li>returns null instead of throwing exception or Optional</li>
      * </ul>
@@ -113,6 +113,16 @@ public final class Meta {
     public @interface UnstableAPI {
     }
 
+    /**
+     * This method is designed for JDK8, new java versions can throw exception at runtime
+     * because of more strict security model
+     */
+    @Retention(RUNTIME)
+    @Target({TYPE, METHOD, CONSTRUCTOR})
+    @Documented
+    public @interface ForJDK8 {
+    }
+
     /**
      * Annotation used by {@link net.ranides.assira.reflection.AdapterFactory}
      * AdapterFactory tries cast any object into type marked by this annotation.