| [#1067] | project: compiler | priority: low | category: bug | |
|---|---|---|---|---|
| submitter | assigned to | status | date submitted | |
| Nikolay | Martin | fixed | 2007-04-24 10:37:06.0 | |
| subject | [contrib #443] AbstractMethodError should be detected at compile | |||
| code |
object X extends Application
{
abstract class B
{
// force derived classes to provide an implementation
override def toString: String
}
// I would like a compiler error reporting that this class should be abstract
// I'm not sure what the language spec requires.
class D extends B
{
}
Console.println(new D().toString)
}
|
|||
| what happened | runtime error java.lang.AbstractMethodError: X$D.toString()Ljava/lang/String; |
|||
| what expected | compile time error | |||
| [back to overview] | ||||
| Nikolay edited on 2007-04-24 10:38:49.0 |
| contribution #443 |
| Adriaan edited on 2007-04-24 11:29:13.0 |
| this seems related to toString not generated in case class if overloaded version exists |
| Martin edited on 2007-04-29 16:51:23.0 |