Mercurial > hg > graal-compiler
diff graal/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/TypeSystemTest.java @ 18782:3ea386a1036f
Truffle-DSL: breaking: @TypeCheck and @TypeCast now require casted/checked type as explicit parameter. Previously the type was parsed from the method name. (GRAAL-446 #resolve)
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 05 Jan 2015 20:23:22 +0100 |
parents | 3912400fc33a |
children | 93016f2f3f16 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/TypeSystemTest.java Mon Jan 05 20:23:22 2015 +0100 +++ b/graal/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/TypeSystemTest.java Mon Jan 05 20:23:22 2015 +0100 @@ -41,13 +41,13 @@ static int intCheck; static int intCast; - @TypeCheck + @TypeCheck(int.class) public static boolean isInteger(Object value) { intCheck++; return value instanceof Integer; } - @TypeCast + @TypeCast(int.class) public static int asInteger(Object value) { intCast++; return (int) value;