[ http://jira.codehaus.org/browse/JIBX-84?page=all ]
Dennis Sosnoski resolved JIBX-84:
---------------------------------
Assign To: Dennis Sosnoski
Resolution: Fixed
Fix Version: CVS
I instead implemented this through the org.jibx.binding.model.IClass &
ClassWrapper, since I want all dependencies on the current BCEL-backed class
code to be in the latter class. The effect should be the same. There are still
some ugly aspects of the classpath handling, unfortunately, but these probably
won't be cleaned up until 2.0.
> 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
> Assignee: Dennis Sosnoski
> Priority: Critical
> Fix For: CVS
> 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: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs