[ http://jira.codehaus.org/browse/JIBX-109?page=all ]
Dennis Sosnoski resolved JIBX-109:
----------------------------------
Resolution: Won't Fix
This is just the way Java names inner classes, and is the same as you'd need to
do when accessing the inner class from code outside the containing class.
> JiBX can't find an embedded Enum
> --------------------------------
>
> Key: JIBX-109
> URL: http://jira.codehaus.org/browse/JIBX-109
> Project: JiBX
> Type: Bug
> Components: core
> Versions: JiBX 1.1
> Environment: Java 1.5
> Reporter: matt hoffman
> Assignee: Dennis Sosnoski
> Attachments: jibx_embedded_enums.zip
>
>
> It's possible that I've just missed something -- if so, I apologize. It
> seems that JiBX can't find a Java 1.5 Enum that is nested inside another
> class.
> For instance:
> public class TestClass {
> public static TestEnum { val1, val2, val3 }
>
> public TestEnum enumFIeld;
> }
> Referring to this value in a mapping file like this:
> <value name="enumField" field="enumField"
> deserializer="TestClass.TestEnum.valueOf"/>
> will fail during binding with the following error:
> [bind] Error: Error during validation: Internal error: class
> TestClass.TestEnum cannot be found; on value element at (line 8, col 147, in
> test-binding.xml)
> If, on the other hand, "TestEnum" is moved to a standalone file (and the
> mapping file is updated accordingly) then everything works fine.
> A test case is included, borrowed from Jira task JiBX-63, with appropriate
> modifications.
--
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
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs