From vlad_dumitrescu@REDACTED Sat Feb 4 10:12:10 2006 From: vlad_dumitrescu@REDACTED (Vlad Dumitrescu) Date: Sat, 4 Feb 2006 10:12:10 +0100 Subject: jinterface: can't use 0-length tuples Message-ID: Hi! In jinterface 1.3 tuples with zero length can't be created or used. Unless there's a reason for that, I think they should be supported just like in Erlang :-) The fix is very simple: public OtpErlangTuple(OtpErlangObject[] elems, int start, int count) { - if ((elems == null) || (count < 1)) + if (elems == null) { throw new java.lang.IllegalArgumentException("Cannot make an empty tuple"); best regards, Vlad -------------- next part -------------- An HTML attachment was scrubbed... URL: