openj / core

abandoned, please check out https://github.com/jsoftware/jsource
https://github.com/jsoftware/jsource
118 stars 26 forks source link

Android version of J crashes repeatedly with faulty code. #37

Open sam-falvo opened 10 years ago

sam-falvo commented 10 years ago

While working with the Android version of J701, referenced from http://www.jsoftware.com/jwiki/Android, I've discovered certain classes of syntax errors will cause the interpreter to crash hard. I downloaded the APK here: https://github.com/mdykman/jconsole_for_android/blob/master/dist/j-console.apk

I would have left this issue on mdykman's Github page, but no issues tab exists for it.

To reproduce:

a=:a
a''

When executed, the above code will result in the J interpreter force-stopping and returning back to the Android home screen. I would rather expect it to deliver a "syntax error" instead, as it does on the desktop.

I know it's not an infinite loop exceeding its stack, because this:

a=:$:
a''

will properly deliver a stack error.

Thank you!