[
http://jira.codehaus.org/browse/JIBX-118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dennis Sosnoski closed JIBX-118.
--------------------------------
> add-constructors does not work with classes mapped as abstract
> --------------------------------------------------------------
>
> Key: JIBX-118
> URL: http://jira.codehaus.org/browse/JIBX-118
> Project: JiBX
> Issue Type: Bug
> Components: core
> Affects Versions: JiBX 1.1
> Environment: MacOS X, Java 5.0, Ant 1.6
> Reporter: Daniel Dyer
> Assignee: Dennis Sosnoski
> Fix For: JiBX 1.1.3
>
>
> I have a mapping for a collection that contains objects of type A. A is an
> abstract static inner class. Classes B and C are concrete static inner
> classes that extend from A. I have mapped A with abstract="true" and used
> map-as="A" with classes B and C. None of these classes has a default
> constructor so I have add-constructors="true" set on the binding element.
> The binding compiler runs fine, marshalling works OK but unmarshalling fails
> with a NoSuchMethodError that refers to a no-arg constructor for class A.
> It seems that JiBX does not add default constructors for abstract classes.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs