[
http://jira.codehaus.org/browse/JIBX-140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dennis Sosnoski closed JIBX-140.
--------------------------------
> VerifyError on multi-dimensional arrays
> ---------------------------------------
>
> Key: JIBX-140
> URL: http://jira.codehaus.org/browse/JIBX-140
> Project: JiBX
> Issue Type: Bug
> Components: core
> Affects Versions: JiBX 1.1
> Environment: any
> Reporter: David Citron
> Assignee: Dennis Sosnoski
> Fix For: JiBX 1.1.2
>
>
> org.jibx.binding.classes.MethodBuilder.appendCreateArray(String) does not
> generate valid bytecode for multi-dimensional arrays.
> The class name added to the constant pool is incorrect for non-primitives. It
> would appear that replacing all of:
> {noformat}
> String btype = type;
> while (btype.endsWith("[]")) {
> btype = btype.substring(0, btype.length()-2);
> }
> String cname = type + "[]";
> if (ClassItem.isPrimitive(btype)) {
> cname = Utility.getSignature(cname);
> }
> append(new MULTIANEWARRAY(m_instructionBuilder.
> getConstantPoolGen().addClass(cname), (short)1));
> {noformat}
> with:
> {noformat}
> String cname = Utility.getSignature(type + "[]");
> append(new MULTIANEWARRAY(m_instructionBuilder.
> getConstantPoolGen().addClass(cname), (short)1));
> {noformat}
> resolves the issue
> I think that even the following would be enough, since the _dimension_
> attribute above is hard-coded to 1 anyway:
> {noformat}
> String cname = Utility.getSignature(type);
> append(new ANEWARRAY(m_instructionBuilder.
> getConstantPoolGen().addClass(cname)));
> {noformat}
> Please see "{{[jibx-users] VerifyError on multi-dimensional array}}" if more
> details are required.
--
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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs