[
http://jira.codehaus.org/browse/JIBX-249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dennis Sosnoski resolved JIBX-249.
----------------------------------
Resolution: Cannot Reproduce
It's not necessary to supply a default constructor if the class is only being
used with an element name provided. I've added a test case to verify that this
works correctly in the current code.
If there's some location in the binding where the marshaller/unmarshaller is
being used without providing an element name that would explain why the default
constructor is being accessed.
It would be good to provide a better warning for this case, but that's
difficult to do in the current code - and since this is not a common problem
it's probably not worth the effort.
> Binding compiler fails when a custom marshaller/unmarhsaller is missing a
> no-argument constructor
> -------------------------------------------------------------------------------------------------
>
> Key: JIBX-249
> URL: http://jira.codehaus.org/browse/JIBX-249
> Project: JiBX
> Issue Type: Bug
> Components: core
> Affects Versions: JiBX 1.1.6
> Reporter: Sean Parmelee
> Assignee: Dennis Sosnoski
> Priority: Trivial
>
> When using a custom marshaller/unmarshaller that doesn't have a no-argument
> constructor (just the aliased constructor), the JiBX binding compiler will
> output the following error message:
> *** Error during code generation for file 'binding.xml' - please enter a bug
> report for this error in Jira if the problem is not listed as fixed on the
> online status page ***
> This error no longer occurs once a no-argument constructor is added to the
> class.
> I was originally under the assumption that I had the option of using a
> no-argument constructor or the aliased constructor, but it appears the
> no-argument constructor is required. This being the case, the compiler should
> output a more informative error message as it does for other binding problems.
--
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
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs