[ http://jira.codehaus.org/browse/JIBX-84?page=all ]

Dan Allen updated JIBX-84:
--------------------------

    Attachment: JIBX-84.txt

Adding patch for org.jibx.binding.model.StringAttributes

> Class loading mishandled for custom formatter with default value
> ----------------------------------------------------------------
>
>          Key: JIBX-84
>          URL: http://jira.codehaus.org/browse/JIBX-84
>      Project: JiBX
>         Type: Bug
>   Components: core
>     Versions: 1.0-RC1
>  Environment: java on linux
>     Reporter: Dan Allen
>     Priority: Critical
>  Attachments: JIBX-84.txt
>
> Original Estimate: 15 minutes
>         Remaining: 15 minutes
>
> The class loading mechanism improperly assumes that the executing context can 
> be used to load the custom formatter class when handling the case of a 
> default value being present.  The proper way to do this is to reference the 
> ClassCache that is initialized when the compile() method is called.
> This correction is a simple replacement of ClassUtils.loadClass with 
> ClassFile.loadClass.  In the first case, the classloader of the current 
> thread is used, while in the second case the registered classpath of the 
> compiler is used.  You don't see a problem when running from the commandline, 
> but you do see a problem when third party tools, such as the 
> maven-jibx-plugin executes the compile method.

-- 
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 the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to