[Nestmates] Error message when MemberOfNest is not found

Remi Forax forax at univ-mlv.fr
Mon Aug 21 14:11:06 UTC 2017


While testing the implementation of nestmates in ASM,
i've mess up with one of my test and insert the wrong name in MemberOfNest.

So it get a ClassNotFoundError, that's Ok, but i get an unexpected stacktrace,
it reference the first line of the main(), which is disturbing.

Exception in thread "main" java.lang.NoClassDefFoundError: $A
	at Foo.main(Foo.java:15)
Caused by: java.lang.ClassNotFoundException: $A
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:495)
	... 1 more

Is it normal ?
Is there a way to improve the error message ?

Rémi


More information about the valhalla-dev mailing list