]
Nistor Adrian commented on IPROTO-162:
--------------------------------------
The fix was included here
[
]
It seems TypeMirror.getEnclosingType() does not work (always returns null) while
TypeElement.getEnclosingElement() works corectly. Bad bad bad javac!!
So I used the alternative implementation to work around it.
MirrorClass.getEnclosingClass() is broken and always returs null
----------------------------------------------------------------
Key: IPROTO-162
URL:
https://issues.redhat.com/browse/IPROTO-162
Project: Infinispan ProtoStream
Issue Type: Bug
Affects Versions: 4.3.0.Final
Reporter: Nistor Adrian
Assignee: Nistor Adrian
Priority: Major
Fix For: 4.4.0.Alpha1, 4.3.4.Final
Message types generated with annotation processing during compile time should follow the
nesting of the classes from which they are generated. But since getEnclosingClass() always
returns null that leads to all types becoming top level types in the generated schema.
Interestingly, the runtime variant of this, ReflectionClass.getEnclosingClass() works
correctly and we only test that one in our suite.