sun.reflect.Reflection.getCallerClass(int) is going to be removed... how to replace?

David Chase david.r.chase at oracle.com
Tue Jul 9 06:10:36 PDT 2013


On 2013-07-09, at 2:12 AM, Charles Oliver Nutter <headius at headius.com> wrote:

> We advise our users to pass in a classloader. Class.forName's
> stack-based discovery of classloaders is too magic anyway.

It has long seemed like a bit of a crock that classloaders were not part of the class name.  Some of the squirreliest bugs we had in the Fortress implementation occurred when "the" classloader somehow got itself duplicated, and the "Foo is not a Foo" errors were the worst. 

David



More information about the mlvm-dev mailing list