Hi!
The following binding yields a VerifyError:
<mapping name="value" class="com.redcrea.ina.tools.jibx.JiBXValue">
<structure usage="optional" field="itsValue" name="text"
test-method="isText">
<value style="attribute" name="value" type="java.lang.String"/>
</structure>
</mapping>I think the known problem mentioned in the FAQ doesn't apply to my case as the optional structure provides property attributes.
Here are the details of the error: java.lang.VerifyError: (class: com/redcrea/ina/tools/jibx/JiBXValue, method: JiBX_all_bindings_marshalAttr_1_1 signature: (Ljava/lang/Object;Lorg/jibx/runtime/impl/MarshallingContext;)V) Incompatible argument to function
Here is the output of javap regarding the erroneous method: public static void JiBX_all_bindings_marshalAttr_1_1(java.lang.Object,org.jibx.runtime.impl.MarshallingContext); throws org/jibx/runtime/JiBXException Code: 0: aload_1 1: aload_0 2: invokevirtual #153; //Method org/jibx/runtime/impl/MarshallingContext.pushObject:(Ljava/lang/Object;)V 5: aload_1 6: iconst_0 7: ldc #118; //String value 9: aload_0 10: invokevirtual #171; //Method org/jibx/runtime/impl/MarshallingContext.attribute:(ILjava/lang/String;Ljava/lang/String;)Lorg/jibx/runtime/impl/MarshallingContext; 13: aload_1 14: invokevirtual #172; //Method org/jibx/runtime/impl/MarshallingContext.popObject:()V 17: return
From my limited understanding of Java bytecode, the issue is that the attribute method on line 10 is invoked with a String and an Object, instead of two strings. I am not sure if this is just a missing cast, or some more involved stuff.
Here is an extract of the JiBXValue class: public class JiBXValue { private Object itsValue; (...)
public Object getValue()
{
return itsValue;
} (...)
public boolean isText()
{
return getValue() instanceof String;
}(...) }
Any idea what is causing this problem? Denis, by the way, did you find a solution to the CVS problem? Thanks. g
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
jibx-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jibx-users
