logula icon indicating copy to clipboard operation
logula copied to clipboard

Support anonymous classes: Use getName instead of getCanonicalName

Open jdanbrown opened this issue 13 years ago • 1 comments

Creating anonymous subclasses of classes that use Logging trips an NPE, e.g. http://stackoverflow.com/questions/9958977/logula-logging-on-anonymous-class-instances

Since getCanonicalName returns null in some cases, like anonymous classes, the simplest fix seemed to be to just forgo canonical names and use getName instead.

jdanbrown avatar Aug 06 '12 01:08 jdanbrown

I confirm this issue. This one is a showstopper.

nikita-volkov avatar Aug 09 '12 10:08 nikita-volkov