[#958] | project: api | priority: low | category: bug | |
---|---|---|---|---|
submitter | assigned to | status | date submitted | |
Nikolay | Martin | fixed | 2007-02-18 15:54:37.0 | |
subject | [contrib #343] Array.slice throws ClassCastException | |||
code |
In the interpreter: val a = Array(1, 2, 3) a.slice(0, 1) // throws ClassCastException in BoxedArray.scala: 76 |
|||
what happened | java.lang.ClassCastException: [I at scala.runtime.BoxedArray.slice(BoxedArray.scala:76) at line3$object$. |
|||
what expected | ||||
[back to overview] |
Nikolay edited on 2007-02-18 15:57:26.0 |
I don't understand how BoxedArray.slice should be implemented but it cannot be forwarded to BoxedArray.subArray because (1) it is deprecated and (2) returns an unboxed array. |
Martin edited on 2007-02-19 17:16:52.0 |