Faculty of Information Technology
Software Engineering Group

Dark Corners of Java…

...aka what you never wanted to know.

Java is full of mess, like everything else. Examples:

1. sun.reflect.MagicAccessorImpl

MagicAccessorImpl (named for parity with FieldAccessorImpl and others, not because it actually implements an interface) is a marker class in the hierarchy. All subclasses of this class are "magically" granted access by the VM to otherwise inaccessible fields and methods of other classes. It is used to hold the code for dynamically-generated FieldAccessorImpl and MethodAccessorImpl subclasses. (Use of the word "unsafe" was avoided in this class's name to avoid confusion with {@link sun.misc.Unsafe}.)

Argh...you'be better jump off the window!

Last modified 5 years ago Last modified on Nov 18, 2012, 12:35:50 PM