users@jaxb.java.net

Re: jaxb2-reflection exception

From: wiedkla <klaus.wiederaenders_at_alcatel.at>
Date: Mon, 13 Mar 2006 07:41:57 -0800 (PST)

Thank you for your reply.

I downloaded the jaxb2-reference from today's nightly build.
Rather it seem, the source of it is out-of-date. I found
a CVS enry from August last year reading like this:

"Right now the source code of this library is derived from the JAXB 2.0 RI.
So go to http://jaxb.dev.java.net/ and access the JAXB 2.0 source code from
there."

I did and tried to recompile jaxb2-reflection from
https://jaxb2-reflection.dev.java.net/ jaxb2-reflection/src.zip.

Dozens of compile errors. Here a code snippet
        // check the access type first
        XmlAccessType at = getAccessType();

        properties = new FinalArrayList<PropertyInfoImpl<T,C,F,M>>();

        // find properties from fields
        for( F f : nav().getDeclaredFields(clazz) ) {
            Annotation[] annotations =
reader().getAllFieldAnnotations(f,this);
            if( nav().isStaticField(f) ) {
                // static fields are bound only when there's explicit
annotation.
                if(hasJAXBAnnotation(annotations))
                    addProperty(createFieldSeed(f),annotations);
            } else {
                if(at==XmlAccessType.FIELD
                ||(at==XmlAccessType.PUBLIC_MEMBER &&
nav().isPublicField(f))
                || hasJAXBAnnotation(annotations))
                    addProperty(createFieldSeed(f),annotations);
                else
                    checkFieldXmlLocation(f);
            }
        }

        findGetterSetterProperties(at);

        if(propOrder==DEFAULT_ORDER || propOrder==null) {
            XmlAccessOrder ao = getAccessorOrder();
            if(ao==XmlAccessOrder.ALPHABETICAL)
                Collections.sort(properties);


So, the source seems to be outdated. Or has it moved and is now
maintained somewhere else?

Have fun,
klaus
--
View this message in context: http://www.nabble.com/jaxb2-reflection-exception-t1271761.html#a3379811
Sent from the java.net - jaxb users forum at Nabble.com.