HaxeFoundation / hxjava

Haxe Java support library. Build scripts and support code.
The Unlicense
46 stars 14 forks source link

'_' as an identifier not supported in Java 8 #9

Closed boozook closed 5 years ago

boozook commented 9 years ago
/usr/bin/haxe build.hxml
haxelib run hxjava hxjava_build.txt --haxe-version 3200
javac "-sourcepath" "src" "-d" "obj" "-g:none" "@cmd"
src/haxe/Unserializer_setResolver_127__Fun.java:18: warning: '_' used as an identifier
        java.lang.String _ = ( (( __fn_dyn1 == haxe.lang.Runtime.undefined )) ? (haxe.lang.Runtime.toString(__fn_float1)) : (haxe.lang.Runtime.toString(__fn_dyn1)) );
                         ^
  (use of '_' as an identifier might not be supported in releases after Java SE 8)
Note: src/haxe/root/Date.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 warning

Process finished with exit code 0

For example haxe.remoting (line:127) and many more Haxe3-code will not valid now.

musou1500 commented 9 years ago

I think this problem is not hxjava's issue. https://github.com/HaxeFoundation/haxe/blob/development/genjava.ml

musou1500 commented 9 years ago

I create issue in HaxeFoundation/haxe repository. https://github.com/HaxeFoundation/haxe/issues/4219

posxposy commented 5 years ago

This is fixed by https://github.com/HaxeFoundation/haxe/pull/4221