You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create @Entity, which inherits from MappedSuperclass created earlier
In MappedSuperclass, add field, eg. @Column protected Boolean alive;
In Entity, add field with same name and type, eg. @Column private boolean alive;
Create named query ("select all" and add where clause, which include field created earlier) and execute it (getResultList()). You can see specific example in stack trace.
(I do not know how EclipseLink handle fields internally, so I am not sure if different access modifiers or wrapped primitive type change something, In steps to reproduce I chosed the same while encountering this bug.)
EclipseLink version
3.0.4
Java/JDK version openjdk version
"1.8.0_412"
OpenJDK Runtime Environment (Temurin)(build 1.8.0_412-b08)
OpenJDK 64-Bit Server VM (Temurin)(build 25.412-b08, mixed mode)
DB used (which is probably unrelated)
MySQL 8.4
Additional info
Parameter bounding seems OK (1 parameter expected, 1 parameter provided), however it looks like it has problem with same fields in inheriting and inherited classes while trying to map them to ?: Column Index out of range, 2 > 1 (see stack trace).
This is a design bug. Solution is to remove same field from inheriting class, however Index out of range error message seems related to something else.
The text was updated successfully, but these errors were encountered:
Stack trace
stack_trace.txt
To Reproduce
@MappedSuperclass
@Entity
, which inherits from MappedSuperclass created earlier@Column protected Boolean alive;
@Column private boolean alive;
getResultList()
). You can see specific example in stack trace.(I do not know how EclipseLink handle fields internally, so I am not sure if different access modifiers or wrapped primitive type change something, In steps to reproduce I chosed the same while encountering this bug.)
EclipseLink version
3.0.4
Java/JDK version openjdk version
"1.8.0_412"
OpenJDK Runtime Environment (Temurin)(build 1.8.0_412-b08)
OpenJDK 64-Bit Server VM (Temurin)(build 25.412-b08, mixed mode)
DB used (which is probably unrelated)
MySQL 8.4
Additional info
Parameter bounding seems OK (1 parameter expected, 1 parameter provided), however it looks like it has problem with same fields in inheriting and inherited classes while trying to map them to
?
:Column Index out of range, 2 > 1
(see stack trace).This is a design bug. Solution is to remove same field from inheriting class, however Index out of range error message seems related to something else.
The text was updated successfully, but these errors were encountered: