Closed jcconca closed 2 years ago
Duplicate of #2408
How is posible that is solved in 2.6.1 and fails in that exact version? @schauder
Which version has the bug fixed? I only see this comment about the version:
This should be fixed now in 2.6, 2.7 and 3.0 snapshots. by @odrotbohm
How is posible that is solved in 2.6.1 and fails in that exact version? I don't think anybody said this is fixed in 2.6.1
The fix will be included in the next releases of the 2.6, 2.7 and 3.0 branches: 2.6.2
, 2.7.0-M3
, and 3.0.0-M2
You can tell by the branches and tags the fixing commits are contained in. If it is in a tag for a version the fix is included in that version. if it only in main or a version.x branch it will be included in those branches next version.
Hi guys:
In one of the projects I'm working now we decide to upgrade to SpringBoot 2.6.3
And as part of the upgrade one of the problems that we detect is:
After having a look, seems that the method getTypeToRead() is returning a null under certain circumstances:
but is not controlled in the code that requested in JpaQueryCreator and fails running this command:
query = typeToRead.isInterface() ? query.multiselect(selections) : query.select((Selection) builder.construct(typeToRead, selections.toArray(new Selection[0])));
JpaQueryCreator:
Why if the interface projection has the same properties as the input properties, is declared as closed and is required to return null?
public boolean isClosed() { return this.properties.equals(this.getInputProperties()); }
and why check if the TypeToRead is an interface over a possible null value?
If this helps, this are the classes that I have in my project and produce the error after the migration from SpringDataJpa 2.4.X to 2.6.X.
Entity embeddable id:
Document entity:
Projection interface
Repository
Any idea to solve this specific scenario?