[erlang-questions] JInterface empty string issue
Tue Sep 23 15:02:28 CEST 2008
We are sending strings (in tuples and otherwise) from Erlang to Java
(receiving them with JInterface). If the string is non-empty, we receive
an OtpErlangString in Java. But if the string is empty, the empty list
(nil) is sent, which becomes an OtpErlangList. This means that we cannot
"blindly" cast the incoming message (or tuple element) to an
OtpErlangString, but we must always check if it is the empty list.
I believe this issue could be solved by making OtpErlangString extend
OtpErlangList and implementing the OtpErlangList methods in
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions