soywiz-archive / jtransc

Bytecode to source converting Java & Kotlin code into JavaScript, C++, D, C#, PHP, AS3, Dart and Haxe and run it everywhere. Also use JVM code in your favourite language as a library.
https://jtransc.soywiz.com/
Apache License 2.0
632 stars 67 forks source link

Fix minitemplate if else #197

Closed soywiz closed 7 years ago

soywiz commented 7 years ago

This should fix https://github.com/jtransc/jtransc/issues/190

soywiz commented 7 years ago

That's strange if you have all versions right and installed this one. I was able to reproduce the problem in tests and fixed. But maybe I missed something.

When K get hime this night, i will try to reproduce the problem and update this PR if an additional fix is required.

If I cannot solve it, I will still release 0.6.5 without that additional fix, so we can have a release this week despite of that. At least this fix a spurious bug with if/else even if not fixes that specific case for other reason.

ghost commented 7 years ago

I finish reinstall my mac today. And try test again. You can release anyway, and will be work for 0.6.6

soywiz commented 7 years ago

Went to jtransc folder:

git checkout fix-minitemplate-if-else
type gradle.properties # <<- jtransc 0.6.4
./gradlew install

Went to gdx-backend-jtransc folder:

git checkout bugs/minitemple-if-else
type gradle.properties # <<- jtransc 0.6.4
./gradlew install

Went to jtransc-examples/spine-demo folder:

type gradale.properties # << jtransc 0.6.4
gradlew debugHaxecpp
type build\jtransc-haxe\src\com\jtransc\media\limelibgdx\LimeApplication_.hx

snag-0029 snag-0028