[hibernate-issues] [Hibernate-JIRA] Resolved: (ANN-770) Confusing error when missing default constructor
Hardy Ferentschik (JIRA)
noreply at atlassian.com
Thu Apr 16 10:10:17 EDT 2009
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-770?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hardy Ferentschik resolved ANN-770.
-----------------------------------
Resolution: Cannot Reproduce
In 3.4.0 GA the exception is:
org.hibernate.InstantiationException: No default constructor for entity: my.FooBar
> Confusing error when missing default constructor
> ------------------------------------------------
>
> Key: ANN-770
> URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-770
> Project: Hibernate Annotations
> Issue Type: Bug
> Affects Versions: 3.3.1.GA
> Reporter: Miguel Griffa
>
> if a persistent class X is missing the default constructor, instead of reporting the missing default constructor in class X, I obtained a noclassdeffound for a class Y, referenced in class X, which was oviously in classpath.
> this incorrect error message is very misleading in a debug session.
> if this problem can't be reproduced easily in current test base please indicate so, I'll try to reproduce my environment.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list