@CallerSensitive as public API ?
Paul Benedict
pbenedict at apache.org
Mon Jul 22 17:48:28 UTC 2013
That's true David. I concur with your description.
I was just more interested in the fact that Java has the calling Class
available, but there's no API that exposes it. Many developers kind of
groan they always have to explicitly specify the current class name through
the language.
private static Logger = Logger.getLogger(MyClass.class);
Some wish this language enhancement:
private static Logger = Logger.getLogger(class);
But if a runtime solution could be provided where the calling Class is
accessible, that's just as handy.
Cheers,
Paul
More information about the core-libs-dev
mailing list