We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
class Main { static public function main() { try { throw new Main(); } catch(e:Null<Main>) { trace("caught"); } } function new() { } }
This generates:
public static void main() { //line 3 "C:\\GitHub\\HaxeRepro\\source\\Main.hx" try { //line 4 "C:\\GitHub\\HaxeRepro\\source\\Main.hx" try { //line 4 "C:\\GitHub\\HaxeRepro\\source\\Main.hx" throw haxe.lang.HaxeException.wrap(new haxe.root.Main()); } catch (java.lang.Throwable catchallException) { //line 3 "C:\\GitHub\\HaxeRepro\\source\\Main.hx" haxe.lang.Exceptions.setException(catchallException); //line 6 "C:\\GitHub\\HaxeRepro\\source\\Main.hx" java.lang.Object realException = ( (( catchallException instanceof haxe.lang.HaxeException )) ? (((haxe.lang.HaxeException) (catchallException) ).obj) : (catchallException) ); //line 6 "C:\\GitHub\\HaxeRepro\\source\\Main.hx" if (( realException instanceof [ !TypeError Null ] )) { //line 6 "C:\\GitHub\\HaxeRepro\\source\\Main.hx" haxe.root.Main e = ((haxe.root.Main) (realException) ); //line 6 "C:\\GitHub\\HaxeRepro\\source\\Main.hx" haxe.Log.trace.__hx_invoke2_o(0.0, "caught", 0.0, new haxe.lang.DynamicObject(new java.lang.String[]{"className", "fileName", "methodName"}, new java.lang.Object[]{"Main", "source/Main.hx", "main"}, new java.lang.String[]{"lineNumber"}, new double[]{((double) (((double) (6) )) )})); } else { //line 6 "C:\\GitHub\\HaxeRepro\\source\\Main.hx" throw catchallException; } } } catch (java.lang.Throwable typedException) { //line 2 "C:\\GitHub\\HaxeRepro\\source\\Main.hx" throw haxe.lang.HaxeException.wrap(typedException); } }
Which errors:
src\haxe\root\Main.java:52: error: illegal start of type if (( realException instanceof [ !TypeError Null ] )) ^ src\haxe\root\Main.java:52: error: ')' expected if (( realException instanceof [ !TypeError Null ] )) ^ src\haxe\root\Main.java:52: error: ';' expected if (( realException instanceof [ !TypeError Null ] )) ^ src\haxe\root\Main.java:52: error: variable declaration not allowed here if (( realException instanceof [ !TypeError Null ] )) ^ src\haxe\root\Main.java:59: error: 'else' without 'if' else ^ 5 errors
This blocks #7736. Could be a matter of a missing follow or something worse... Advice appreciated!
follow
The text was updated successfully, but these errors were encountered:
[java] add random follow
1ffca0b
closes HaxeFoundation#7741
I'm gonna close some Java-specific issues as unresolved.
Sorry, something went wrong.
waneck
No branches or pull requests
This generates:
Which errors:
This blocks #7736. Could be a matter of a missing
follow
or something worse... Advice appreciated!The text was updated successfully, but these errors were encountered: