Having a node complexType named Package breaks compilation of generated code
See original GitHub issueMy xsd has a complexType named a.b.c.Package
which causes:
[warn] Class a.b.c.scalaxb.Package$ differs only in case from a.b.c.scalaxb.package$. Such classes will overwrite one another on case-insensitive filesystems
and sometime breaks with SI-8305:
[error] error while loading 'package', class file 'a/b/c/scalaxb/Package.class' has location not matching its contents: contains class 'package'
I was not able to reproduce it in tests, but renaming package helped. PR on the way.
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
java - JAXB and complexType sharing name with one of it's ...
1 Answer 1 ... You can use an external binding file to customize the generated class names. For an example see: ... Awesome!...
Read more >Chapter 17 Binding between XML Schema and Java Classes
Compile classes: All of the generated classes, source files, and application code must be compiled. Unmarshal: XML documents written according to the ...
Read more >JAXB Users Guide - Java EE
This document explains various interesting/complex/tricky aspects of JAXB, based on questions posted on the JAXB users forum and answers I provided.
Read more >Upgrade to Compiler v2 - SAP Capire
Call cds fix-redirects to let the compiler generate the required annotate statements for you. Option 2: ... No artifact has been found with...
Read more >Writing R Extensions - The Comprehensive R Archive Network
Once a source package is created, it must be installed by the command R CMD INSTALL ... For example, if you have a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here’s a PR - https://github.com/eed3si9n/scalaxb/pull/581
Hey @gabro, imo it is ready to go. I can fix comments and rebase PR if @eed3si9n thinks it is the way to go. btw. the solution provided worked just fine in my case