Closed GoogleCodeExporter closed 8 years ago
Hi Natalia,
I fixed the StringIndexOutOfBoundsException (the fix will be available since
the release 2.3), but unfortunately your statement still cannot work. This is
caused by the well-known generic reification problem. In your case the get(int)
returns an Interval at compile time but only an Object at run time. That means
that lambdaj creates a proxy of the Object class and then generates a
ClassCastException when it tries to convert it in an Interval. The only
solution I can see to this problem is to add to the IntervalsContainer a method
like this:
public Interval getFirst() { return getIntervals().get(0); }
I hope this helps.
Thanks a lot
Mario
Original comment by mario.fu...@gmail.com
on 23 Jun 2010 at 8:44
Original issue reported on code.google.com by
Zolochev...@gmail.com
on 23 Jun 2010 at 10:09