Hi,

recently I tried to run the latest JIBX from git which I compiled myself. I
changed the jibx-version locally, but there is no change in the jibx-code
yet.

Unfortunetaly I get an error when I try to run the jibx-maven task with my
version:

Failed to execute goal org.jibx:maven-jibx-plugin:1.2-patched:test-bind
(compilebinding)
Caused by: java.lang.ClassFormatError: Duplicate method name&signature in
class file com/mov/j/d/j/v/Language
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:787)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:630)
    at org.jibx.binding.Compile$DirectLoader.load(Compile.java:414)
    at org.jibx.binding.Compile.compile(Compile.java:281)
    at
org.jibx.maven.AbstractBaseBindingMojo.compile(AbstractBaseBindingMojo.java:163)
    ... 22 more



The definition for that type is:
    <xsd:simpleType name="language">
        <xsd:restriction base="xsd:string">
            <xsd:enumeration value="EN" />
            <xsd:enumeration value="en" /> <!-- Removing this line fixes
the errormessage -->
        </xsd:restriction>
    </xsd:simpleType>


Imho the generated-source looks correct:
public enum Language implements Serializable {
    EN("EN"), EN1("en");
    private static final long serialVersionUID = 9;
    private final String value;

    private Language(String value) {
        this.value = value;
    }

    public String xmlValue() {
        return value;
    }

    public static Language convert(String value) {
        for (Language inst : values()) {
            if (inst.xmlValue().equals(value)) {
                return inst;
            }
        }
        return null;
    }
}



Is there any way to resolve this error without removing one of the
enumeration values?

Is this expected behaviour which was introduced with a newer version or
might this be a bug in jibx or do you think there is something wrong with
my build?


Thanks in advance for any help,
Christian
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to