[ 
https://issues.apache.org/jira/browse/XMLBEANS-622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17581305#comment-17581305
 ] 

Peter Keller commented on XMLBEANS-622:
---------------------------------------

Some time ago, I used to develop jointly on Linux and OS X (as it was then), 
and I remember running into something like this issue. It wasn't with XMLBeans 
specifically, but my own code, and as I remember I ended up with two Java 
package names that differed only by case. Linux was happy, but OS X not.

As I am sure you know, on OS X/macOS, the filesystem is by default 
case-insensitive but case-aware. It looks like the Java compiler expects the 
classname and containing filename to match by case even under those 
circumstances. Looking at the first error, where the file on your Mac is:

{{build/generated/sources/sSIMPLE/test/java/noNamespace/impl/ResultDocument2Impl.java}}

I get the following file on Linux:

{{build/generated/sources/sSIMPLE/test/java/noNamespace/impl/RESULTDocument2Impl.java}}

so the Java compiler is happy in my hands.

Unfortunately, I don't have access to a Mac any longer and the breakage doesn't 
affect Linux, so it is hard for me to look into this. I wonder if you created a 
new partition and filesystem on your Mac and selected the case-sensitive 
option, whether the XMLBeans tests would work on that filesystem, although that 
isn't a proper fix for this breakage of course.

> javaparser 3.24.4 breaks xmlbeans build
> ---------------------------------------
>
>                 Key: XMLBEANS-622
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-622
>             Project: XMLBeans
>          Issue Type: Improvement
>    Affects Versions: Version 5.1.0
>            Reporter: PJ Fanning
>            Priority: Major
>             Fix For: Version 5.1.2
>
>
> https://github.com/javaparser/javaparser/releases/tag/javaparser-parent-3.24.3
>  seems to have breaking changes. This is tagged 3.24.3 but that release seems 
> to have failed and a newer release 3.24.4 was made.
> The xmlbeans build fails with this version. It appears some generated code 
> appears in Java files whose name does match the name of the class (case 
> sensitivity issues).
> We could fix the tests so that the build succeeds but the question is would 
> users who use XMLBeans also hit similar issues with their XSD to Java code 
> generation?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to