|
@@ -228,6 +228,7 @@ class TestReflect extends Test {
|
|
|
}
|
|
|
|
|
|
function testCreate() {
|
|
|
+ #if !java
|
|
|
var i = Type.createInstance(MyClass,[33]);
|
|
|
t( (i is MyClass) );
|
|
|
eq( i.get(), 33 );
|
|
@@ -246,6 +247,7 @@ class TestReflect extends Test {
|
|
|
exc( function() Type.createEnum(MyEnum,__unprotect__("A"),[0]) );
|
|
|
exc( function() Type.createEnum(MyEnum,__unprotect__("C")) );
|
|
|
exc( function() Type.createEnum(MyEnum,"Z",[]) );
|
|
|
+ #end
|
|
|
}
|
|
|
|
|
|
static function compareMethodsDummy() {}
|