[ 
http://jira.codehaus.org/browse/JIBX-136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dennis Sosnoski updated JIBX-136:
---------------------------------

      Assignee: Dennis Sosnoski
    Issue Type: Improvement  (was: Bug)

Trying to do a <mapping> for java.lang.String (or any Java built-in class) is 
not going to work for this purpose, for reasons that are a little difficult to 
explain. Basically, the <mapping> element is being used for different purposes 
in the binding definition, one of which (the original purpose) is to define 
*the* one way to convert an object type to an XML element, and to convert the 
element back to the object type. This original purpose cannot be used for 
built-in classes (or any other unmodifiable classes), since it requires 
bytecode enhancement of the object class.

Clearly there needs to be some better error checking of the binding definition 
to catch this type of problem usage, and I need to document more clearly the 
distinction between the different types of <mapping> usages. I'll try to add 
this for 1.2, but the ultimate solution is to break apart the different usages 
of the <mapping> element for 2.0.

> ClassCastExeption from JIBX_binding_marshal..
> ---------------------------------------------
>
>                 Key: JIBX-136
>                 URL: http://jira.codehaus.org/browse/JIBX-136
>             Project: JiBX
>          Issue Type: Improvement
>            Reporter: Gerd.Kainz
>         Assigned To: Dennis Sosnoski
>


-- 
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

        

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to