Class.getSimpleName not suitable for non-Java classes

Aleksey Shipilev shade at redhat.com
Thu Mar 16 12:38:07 UTC 2017


On 03/13/2017 07:57 PM, Daniel Armak wrote:
> The attached patch simply replaces the 3 calls to getSimpleName with getName.
> The tests pass successfully. The output of sample #1 now looks like this:

I pushed the variant of this, along with tests and output tuneups as:
  https://bugs.openjdk.java.net/browse/CODETOOLS-7901916

Please test, and make corrections if you see problems in your use cases. If no
problems are found, I would promote to Maven Central.

Thanks,
-Aleksey




More information about the jol-dev mailing list