Mercurial > hg > graal-jvmci-8
diff graal/com.oracle.graal.snippets/src/com/oracle/graal/snippets/ClassSubstitution.java @ 8373:86a9e3ea8fe9
support substitutions for classes that made not be part of the runtime (GRAAL-123)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 19 Mar 2013 15:38:10 +0100 |
parents | ca9061b6694c |
children |
line wrap: on
line diff
--- a/graal/com.oracle.graal.snippets/src/com/oracle/graal/snippets/ClassSubstitution.java Tue Mar 19 14:50:27 2013 +0100 +++ b/graal/com.oracle.graal.snippets/src/com/oracle/graal/snippets/ClassSubstitution.java Tue Mar 19 15:38:10 2013 +0100 @@ -56,6 +56,12 @@ String className() default ""; /** + * Determines if the substitutions are for classes that may not be part of the runtime. + * Substitutions for such classes are omitted if the original classes cannot be found. + */ + boolean optional() default false; + + /** * Denotes a substitute method. A substitute method can call the original/substituted method by * making a recursive call to itself. */