Aladdin - Scala Bugtracking
[#20] project: compiler priority: medium category: bug
submitter assigned to status date submitted
Stephane Martin fixed 2003-05-27 14:10:42.0
subject scalac.ApplicationError
code
object Exceptions {

    class CubeException(s: String) extends java.lang.RuntimeException(s);

    def main(args: Array[String]) =
        System.out.println(new CubeException("test"));

}
what happened
Exception in thread "main" scalac.ApplicationError: method type required: OverloadedType([java.lang.RuntimeExcep\
tion,java.lang.RuntimeException,java.lang.RuntimeException,java.lang.RuntimeException],[MethodType([],TypeRef(Si\
ngleType(SingleType(ThisType(.),java),java.lang),java.lang.RuntimeException,[])),MethodType([.x0],Ty\
peRef(SingleType(SingleType(ThisType(.),java),java.lang),java.lang.RuntimeException,[])),MethodType([.x0,.x1],TypeRef(SingleType(SingleType(ThisType(.),java),java.lang),java.lang.RuntimeException,[]))\
,MethodType([.x0],TypeRef(SingleType(SingleType(ThisType(.),java),java.lang),java.lang.RuntimeExcept\
ion,[]))])
        at scalac.ast.TreeGen.Apply(TreeGen.java:360)
what expected CubeException: test
[back to overview]
Changes of this bug report