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

javax.xml module issues #72

Open
etatara opened this issue Aug 30, 2022 · 2 comments
Open

javax.xml module issues #72

etatara opened this issue Aug 30, 2022 · 2 comments
Assignees
Labels
Milestone

Comments

@etatara
Copy link
Member

etatara commented Aug 30, 2022

If the project compiler level in Eclipse is set to 9+, it will enforce package name restrictions across multiple modules. The JRE 11 includes javax.xml and this conflicts with the javax.xml in the r.s.libs.ext\lib\xml-apis-1.3.04.jar. One solution may be to remove the xml-apis jar if the same classes are now part of the JRE.

@etatara etatara self-assigned this Aug 30, 2022
@etatara etatara added this to the v.3.0.0 milestone Aug 30, 2022
@etatara etatara added the Bug label Aug 30, 2022
@etatara
Copy link
Member Author

etatara commented Aug 31, 2022

This issue appears to be caused by the Apache batik libraries in libs.ext that include the xml-apis and xml-apis.ext. Setting the developer environment compiler level to 11 shows the same problem. Removing the offending jars from libs.ext partially solves the compiler error, but the batik jars contain some classes that aren't include in the JRE w3c.dom packages. Need to check if we can either update to a newer version of batik, or create a custom library.

@etatara
Copy link
Member Author

etatara commented Sep 12, 2022

Note this only happens when the project code explicitly imports certain javax.xml packages. The compiler errors won't otherwise appear or cause issues if the Eclipse compiler level is set to 11.

@etatara etatara modified the milestones: v.3.0.0, v.2.11.0 Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant