const class Main{
static Void main(){
s:=MyObj.cur
}
}
const class MyObj{
static const MyObj cur:=MyObj()
private new make(){
throw MyErr("this is my error")
}
}
const class MyErr:Err{
new make(Str m):super(m){}
}
That is just the JVM does things - it is not super great at reporting exceptions in initializers. Although the fact that these days you get something is way better than it used to be in the old days.
go4Tue 26 Oct 2010
Thanks for your troubles.I appreciate your help very much.
go4 Sun 24 Oct 2010
singleton error trace
a not clearly error trace:
brian Mon 25 Oct 2010
That is just the JVM does things - it is not super great at reporting exceptions in initializers. Although the fact that these days you get something is way better than it used to be in the old days.
go4 Tue 26 Oct 2010
Thanks for your troubles.I appreciate your help very much.