| Summary: | ConcurrentModificationException on predeploy for AttributeOverride | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Florian Wunderlich <fwunderlich> | ||||||
| Component: | Eclipselink | Assignee: | Guy Pelletier <guy.pelletier> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P2 | CC: | eclipselink.orm-inbox, guy.pelletier, tom.ware | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Florian Wunderlich
Created attachment 206064 [details]
Simple test case that reproduces the problem
To elaborate a bit on the test case:
TheEntity refers to ExtendedEmbeddable,
which inherits from BasicEmbeddable,
which refers to Primitive with an AttributeOverride.
The interesting part:
@Embeddable
@MappedSuperclass
public class BasicEmbeddable
{
@Embedded
@AttributeOverrides({
@AttributeOverride(name = "field",
column = @Column(nullable = true))
})
private Primitive primitive;
...
}
@Embeddable
public class Primitive
{
@Column(nullable = false)
private double field;
...
}
When you say "bug occurs only on EclipseLink-2.3.0". Do you mean the issue did not exist on previous versions? The ConcurrentModificationException was not thrown with EclipseLink-2.1.0; instead, the AttributeOverrides was simply ignored. I have not tested with any other version of EclipseLink. Setting target and priority. See the following page for the meanings of these fields: http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines Community: Please vote for this bug if it is important to you. Votes are one of the main criteria we use to determine which bugs to fix next. Does the exception still occur if you remove the @Embeddable declaration on Basic Embeddable? That class shouldn't be both an @Embeddable and a @MappedSuperclass. Correcting target milestone to next milestone that will include community-submitted bugs. Created attachment 213600 [details]
Proposed changes
Changes have been submitted. Verified by: Andrei Ilitchev Tests: Updated inherited model to expose error during metadata processing. With fix in place, error goes away and FullRegressionTestSuite passes successfully. The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |