bitescript icon indicating copy to clipboard operation
bitescript copied to clipboard

open a file in binary mode to save byte codes.

Open messi18 opened this issue 13 years ago • 0 comments

When I try to compile a bs file(helloworld.bs for example) first and run it with command:   java helloworld I get an error: Exception in thread "main" java.lang.ClassFormatError: ....

Just as the issue: https://github.com/headius/bitescript/issues/9

I opened this file, found generated byte array was saved to a file opened not in binary mode. This will cause EOL <-> CRLF conversion on Windows. So I fix it.

messi18 avatar Nov 01 '12 17:11 messi18