Bug 307 : JAXB @XmlType annotation on Enum type causes NoSuchMethodException
Priority 
High
Reported Version 
 
Logged By 
Rob
Status 
Fixed
Fixed Version 
2.7.0
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
07/06/2010
Updated 
07/06/2010
Type 
Bug
 
Attachments 
No attachments

Caused by: java.lang.NoSuchMethodException: com.avaje.tests.model.basic.Order$Status.()
at java.lang.Class.getConstructor0(Class.java:2647)
at java.lang.Class.getDeclaredConstructor(Class.java:1953)
at com.avaje.ebeaninternal.server.reflect.EnhanceBeanReflect.defaultConstructor(EnhanceBeanReflect.java:67)
... 18 more

@XmlType(name="status")
	public enum Status {
		NEW,
		APPROVED,
		SHIPPED,
		COMPLETE
	}
 
Rob 07 Jun 03:36
Fixed in HEAD

Fixed in HEAD.

We are looking for JAXB beans but not Enums. Fix in BootupClasses which filters for 'interesting' beans.

woResponse

Upload a file