Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 345648

Summary: Infinite loop when PU contains a annotation definition
Product: z_Archived Reporter: Mitesh Meswani <mitesh.meswani>
Component: EclipselinkAssignee: Doug Clarke <douglas.clarke>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: peter.krogh
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mitesh Meswani CLA 2011-05-12 15:20:44 EDT
If a PU contains following kind of class, EclipseLink goes into infinite loop

@Documented
@Constraint(validatedBy = SprintNameUniquenessConstraintValidator.class)
@Target({ ElementType.METHOD, ElementType.FIELD })
@Retention(RetentionPolicy.RUNTIME)
public @interface SprintNameUniquenessConstraint {
    
	String message() default "{sprint.form.label.name.unique}";

	Class<?>[] groups() default {};

    Class<? extends ConstraintPayload>[] payload() default {};
    

}

See GlassFish bug http://java.net/jira/browse/GLASSFISH-16612 for more details.
Comment 1 Mitesh Meswani CLA 2011-05-12 15:22:23 EDT
Setting milestone and assignee
Comment 2 Peter Krogh CLA 2011-05-12 15:47:53 EDT
Fixed for RC1.
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:10:04 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink