[#471] | project: compiler | priority: low | category: bug | |
---|---|---|---|---|
submitter | assigned to | status | date submitted | |
Burak | Martin | not repro | 2005-11-01 12:41:53.0 | |
subject | AbstractMethodError for ::.apply at runtime | |||
code |
oabstract class MySeq extends Seq[String] { def theSeq: Seq[String]; def apply(i:int) = theSeq.apply( i ); def length = theSeq.length; def elements = theSeq.elements; } object Foo extends Object with Application { val reviews = new MySeq { val theSeq = List("a","b") }; reviews(0); } |
|||
what happened | fails at runtime with an AbstractMethodError.emir@lamppc31:/tmp>nsc -d . test5.scala emir@lamppc31:/tmp>ns -cp . Foo Exception in thread "main" java.lang.AbstractMethodError: scala.$colon$colon.apply(Ljava/lang/Object;)Ljava/lang\ /Object; at MySeq.apply(test5.scala:3) at Foo$. |
|||
what expected | no AbstractMethodError exception. | |||
[back to overview] |
Martin edited on 2005-11-01 20:33:14.0 |
I could reproduce it at first, but after recompiling the libraries the problem is gone. It might be a script problem that it got some old version of the class ::. I marked it as not reproducable. Burak, you might want to re-awaken the bug if you notice the problem again. -- Martin |