Jelajahi Sumber

[java] Make sure no 'Unexpected module type' happens on the abstract java.lang types. Closes #4113

Cauê Waneck 10 tahun lalu
induk
melakukan
0dc150045e

+ 1 - 0
std/java/lang/Boolean.hx

@@ -1,5 +1,6 @@
 package java.lang;
 
+@:native("") // make sure the generator won't see this
 @:forward abstract Boolean(BooleanClass) from BooleanClass to BooleanClass
 {
 	@:to @:extern inline public function toBool():Bool

+ 1 - 0
std/java/lang/Byte.hx

@@ -1,5 +1,6 @@
 package java.lang;
 
+@:native("") // make sure the generator won't see this
 @:forward abstract Byte(ByteClass) from ByteClass to ByteClass
 {
 	@:to @:extern inline public function toByte():java.types.Int8

+ 1 - 0
std/java/lang/Character.hx

@@ -1,5 +1,6 @@
 package java.lang;
 
+@:native("") // make sure the generator won't see this
 @:forward abstract Character(CharacterClass) from CharacterClass to CharacterClass
 {
 	@:to @:extern inline public function toCharacter():java.types.Char16

+ 1 - 1
std/java/lang/Double.hx

@@ -1,6 +1,6 @@
 package java.lang;
 
-@:native("") // workaround for #4113
+@:native("") // make sure the generator won't see this
 @:forward abstract Double(DoubleClass) from DoubleClass to DoubleClass
 {
 	@:to @:extern inline public function toFloat():Float

+ 1 - 0
std/java/lang/Float.hx

@@ -1,5 +1,6 @@
 package java.lang;
 
+@:native("") // make sure the generator won't see this
 @:forward abstract Float(FloatClass) from FloatClass to FloatClass
 {
 	@:to @:extern inline public function toFloat():std.StdTypes.Float

+ 1 - 0
std/java/lang/Integer.hx

@@ -1,5 +1,6 @@
 package java.lang;
 
+@:native("") // make sure the generator won't see this
 @:forward abstract Integer(IntegerClass) from IntegerClass to IntegerClass
 {
 	@:to @:extern inline public function toInt():Int

+ 1 - 0
std/java/lang/Long.hx

@@ -1,5 +1,6 @@
 package java.lang;
 
+@:native("") // make sure the generator won't see this
 @:forward abstract Long(LongClass) from LongClass to LongClass
 {
 	@:to @:extern inline public function toLong():haxe.Int64

+ 1 - 0
std/java/lang/Short.hx

@@ -1,5 +1,6 @@
 package java.lang;
 
+@:native("") // make sure the generator won't see this
 @:forward abstract Short(ShortClass) from ShortClass to ShortClass
 {
 	@:to @:extern inline public function toShort():java.types.Int16