<div dir="ltr">Hi!<div><br></div><div style>I found a small problem in jinterface. It has been around for a while now, it happens in a corner case that probably nobody ever uses. </div><div style><br></div><div style>In OtpErlangTuple(OtpErlangObject[], int, int), when the size of the slice used is 0, then the elems fields remains uninitialized, it is the parameter that gets assigned.</div>

<div style><br></div><div style>I used master as base, I hope it's still possible to do that.<br></div><div style><br></div><div style>git fetch git://<a href="http://github.com/vladdu/otp.git">github.com/vladdu/otp.git</a> tuple_constructor_bug</div>

<div style><br></div><div style><a href="https://github.com/vladdu/otp/compare/tuple_constructor_bug">https://github.com/vladdu/otp/compare/tuple_constructor_bug</a></div><div style><a href="https://github.com/vladdu/otp/compare/tuple_constructor_bug.patch">https://github.com/vladdu/otp/compare/tuple_constructor_bug.patch</a><br>

</div><div style><br></div><div style>Given that there are no other tests for jinterface at this level, do you want me to write one for this case?</div><div style><br></div><div style>best regards,</div><div style>Vlad</div>

<div style><br></div></div>