xclerc / ocamljava

http://www.ocamljava.org
Other
172 stars 14 forks source link

ocamllex always fails on java.nio.channels.ClosedChannelException #18

Closed xavierleroy closed 9 years ago

xavierleroy commented 9 years ago

All invocations of ocamllex (the one packaged with ocamljava) fail when generating the .ml file. (My configuration: openjdk-7 on Linux).

Repro case:

$ echo 'rule main = parse "" { () }' > foo.mll $ ocamllex foo.mll 1 states, 0 transitions, table size 6 bytes Fatal error: exception Sys_error("java.nio.channels.ClosedChannelException")

xclerc commented 9 years ago

For the record, the problem is related to the ocamljar tool (that is applied to binaries of the binary distribution).