Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copyable: Missing copyTo for Map-Field (from: anyAttribute) #98

Open
mmichaelis opened this issue Sep 14, 2018 · 3 comments
Open

Copyable: Missing copyTo for Map-Field (from: anyAttribute) #98

mmichaelis opened this issue Sep 14, 2018 · 3 comments

Comments

@mmichaelis
Copy link

Generating classes from XLIFF 1.2 (see https://docs.oasis-open.org/xliff/v1.2/cs02/xliff-core-1.2-strict.xsd) using the copyable plugin results in all classes missing a way to clone "otherAttributes" which are introduced by this XSD entry (see for example trans-unit element):

<xsd:anyAttribute namespace="##other" processContents="strict"/>

As workaround I manually added a corresponding section within the copyTo block (we only generate classes on demand). But of course in the long run this approach isn't feasible.

Did I miss any configuration option? As it seems not only the copyable plugin ignores this field (but there it is most harmful) but also the equals, hashCode and toString plugin.

@highsource
Copy link
Owner

Please create a PR with a reproducing project here: https://github.com/highsource/jaxb2-basics-support under a/anyAttribute.

@mmichaelis
Copy link
Author

Here is the PR: highsource/jaxb2-basics-support#1. It also shows the missing handling in toString, equals and hashCode plugin.

@highsource
Copy link
Owner

Thank you, reproduced.

highsource added a commit that referenced this issue Sep 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants