diff options
Diffstat (limited to 'src/library/scala/runtime/BoxedObjectArray.scala')
-rw-r--r-- | src/library/scala/runtime/BoxedObjectArray.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/scala/runtime/BoxedObjectArray.scala b/src/library/scala/runtime/BoxedObjectArray.scala index 98f58ea92c..e60cf7f585 100644 --- a/src/library/scala/runtime/BoxedObjectArray.scala +++ b/src/library/scala/runtime/BoxedObjectArray.scala @@ -13,7 +13,7 @@ package scala.runtime import Predef.Class -import compat.Platform.{createArray, getElementClass} +import compat.Platform.createArray [serializable] final class BoxedObjectArray(val value: Array[AnyRef]) extends BoxedArray { @@ -36,7 +36,7 @@ final class BoxedObjectArray(val value: Array[AnyRef]) extends BoxedArray { override def hashCode(): Int = value.hashCode() private def create(length: Int): Array[AnyRef] = { - createArray(getElementClass(value), length).asInstanceOf[Array[AnyRef]] + createArray(value.getClass().getComponentType(), length).asInstanceOf[Array[AnyRef]] } override def subArray(start: Int, end: Int): Array[AnyRef] = { |