Skip to content

mark-generated does not work on generated XmlAdapter #1440

@Vampire

Description

@Vampire

For the following:

   <xs:annotation>
      <xs:appinfo>
         <jxb:globalBindings>
            <jxb:javaType name="foo.bar.MyEnum" xmlType="myEnum" parseMethod="foo.bar.MyEnum.convertToEnum" printMethod="foo.bar.MyEnum.convertToString"/>
         </jxb:globalBindings>
      </xs:appinfo>
   </xs:annotation>

XJC generates

public class Adapter1
    extends XmlAdapter<String, MyEnum>
{


    public MyEnum unmarshal(String value) {
        return (foo.bar.MyEnum.convertToEnum(value));
    }

    public String marshal(MyEnum value) {
        return (foo.bar.MyEnum.convertToString(value));
    }

}

but it does not annotate it with @Generated even though the -mark-generated option is given.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions