Mercurial > hg > graal-compiler
diff graal/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/processor/LanguageRegistrationTest.java @ 21889:45083be8a812
Truffle: add a version string to the information provided with Language registration
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Fri, 05 Jun 2015 18:05:13 -0700 |
parents | 2f9e4d984d16 |
children | 894f82515e38 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/processor/LanguageRegistrationTest.java Fri Jun 05 23:05:16 2015 +0200 +++ b/graal/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/processor/LanguageRegistrationTest.java Fri Jun 05 18:05:13 2015 -0700 @@ -31,22 +31,22 @@ public class LanguageRegistrationTest { @ExpectError("Registered language class must be public") - @TruffleLanguage.Registration(name = "myLang", mimeType = "text/x-my") + @TruffleLanguage.Registration(name = "myLang", version = "0", mimeType = "text/x-my") private static final class MyLang { } @ExpectError("Registered language inner-class must be static") - @TruffleLanguage.Registration(name = "myLangNonStatic", mimeType = "text/x-my") + @TruffleLanguage.Registration(name = "myLangNonStatic", version = "0", mimeType = "text/x-my") public final class MyLangNonStatic { } @ExpectError("Registered language class must subclass TruffleLanguage") - @TruffleLanguage.Registration(name = "myLang", mimeType = "text/x-my") + @TruffleLanguage.Registration(name = "myLang", version = "0", mimeType = "text/x-my") public static final class MyLangNoSubclass { } @ExpectError("Language must have a public constructor accepting TruffleLanguage.Env as parameter") - @TruffleLanguage.Registration(name = "myLangNoCnstr", mimeType = "text/x-my") + @TruffleLanguage.Registration(name = "myLangNoCnstr", version = "0", mimeType = "text/x-my") public static final class MyLangWrongConstr extends TruffleLanguage { private MyLangWrongConstr() { super(null); @@ -74,7 +74,7 @@ } @ExpectError("Language must have a public constructor accepting TruffleLanguage.Env as parameter") - @TruffleLanguage.Registration(name = "myLangNoCnstr", mimeType = "text/x-my") + @TruffleLanguage.Registration(name = "myLangNoCnstr", version = "0", mimeType = "text/x-my") public static final class MyLangNoConstr extends TruffleLanguage { public MyLangNoConstr() { super(null); @@ -101,7 +101,7 @@ } } - @TruffleLanguage.Registration(name = "myLangGood", mimeType = "text/x-my") + @TruffleLanguage.Registration(name = "myLangGood", version = "0", mimeType = "text/x-my") public static final class MyLangGood extends TruffleLanguage { public MyLangGood(TruffleLanguage.Env env) { super(env);