Kohsuke Kawaguchi wrote:
>
> Ryan,
>
> While investigating for unit test failures, I came across an interesting
> codeModel bug. "test.tsenum.memberName.Root.Medal" should be printed as
> "Root.Medal".
>
> When you have time, can you check if this can be improved?
>
> This is from Enum/memberName.
>
>
I've looked into this and it seems like a more general problem than
just enums. It affects all nested classes as far as I can tell.
I threw in a quick hack last week, but that seems to have introduced
problems like this:
import java.util.List<? extends java.lang.Comparable>;
So, I'm going to rollback my changes and file an issue to investigate
later. This is just a cosmetic/usability issue that we can live with
for now.
While debugging, I noticed that nested class names are reported as
both types and ids to JFormatter. The nested class is passed into
both JFormatter.t(JClass) and JFormatter.id(String). I'm not sure if
this happens in any other cases, but it confuses the current FQCN
optimization code.
Thanks,
--Ryan