summaryrefslogtreecommitdiff
path: root/src/library/scala/runtime/BoxedArray.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/scala/runtime/BoxedArray.scala')
-rw-r--r--src/library/scala/runtime/BoxedArray.scala7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/library/scala/runtime/BoxedArray.scala b/src/library/scala/runtime/BoxedArray.scala
index c626f685d3..3e815d16a4 100644
--- a/src/library/scala/runtime/BoxedArray.scala
+++ b/src/library/scala/runtime/BoxedArray.scala
@@ -25,6 +25,10 @@ import collection.Sequence
*/
abstract class BoxedArray[A] extends Vector[A] with VectorTemplate[A, BoxedArray[A]] with Boxed { self =>
+ val ex = new Error("trying to create a BoxedArray")
+ ex.printStackTrace()
+ throw ex
+
/** The manifest of the element type */
def elemManifest: ClassManifest[A]
@@ -40,8 +44,7 @@ abstract class BoxedArray[A] extends Vector[A] with VectorTemplate[A, BoxedArray
/** Creates new builder for this collection ==> move to subclasses
*/
override protected[this] def newBuilder: Builder[A, BoxedArray[A]] =
- if (elemManifest != null) new ArrayBuilder[A](elemManifest)
- else genericBuilder[A]
+ genericBuilder[A]
// !!! todo: remove
override def genericBuilder[B]: Builder[B, BoxedArray[B]] = new ArrayBuffer[B].mapResult {