NPE in APT Plugin (Processor.processEmbedded(..)) #27
When generating the query types using the Maven APT plugin, I get a NPE when processing an embedded entity in combination with generics (see stack trace below).
I have the following abstract base entity class:
The abstract base entity class has a member of type EntityCode, which is a base class for all different types of entity codes and is embeddable:
Now when generating the query type for an entity class that extends the base entity AbstractEntity, I get the following NPE:
Could somebody please investigate this issue? Please let me know if you need anything else or whether I can be of any assistance.
The text was updated successfully, but these errors were encountered:
Thanks Timo, for your quick response!
I have given your fix a try (made a build for 2.2.3.SNAPSHOT-BUILD) however the Processor now generates code that tries to directly instantiate the "Path" interface:
The code above is a snippet from the generated query type QBrand for the entity Brand.
Obviously, this code doesn't compile. Could you please have another look into this?
The Brand class looks like this:
Brand extends AbstractNamedEntity which extends AbstractMultilingualEntity:
AbstractMultilingual class extends AbstractEntity which has already been given previously. AbstractEntity implements the Entity interface:
The BrandCode class looks like this:
The BrandCode class extends the abstract EntityCode class which was also already given previously (see issue description). Obviously, I have left out all unimportant members and methods from the classes given above.
Basically, the given classes are all part of two class hierarchies: one for entity codes (1) and one for entities (2):
Nothing special really. Hope this help to figure out what is going on here....