-
Notifications
You must be signed in to change notification settings - Fork 113
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
Illegal us of internal JDK package #116
Comments
Thanks for the hint. I'm working on modularizing jollyday to allow for different XML parsing framworks to be used. Please be patient as I'm doing this in my spare time. |
Why do you want to modularize it? For Android and normal systems? You can also use jackson-databind on Android, according so several posts I found. |
I have had several different opinions on the usage of different frameworks for parsing XML. Some cannot use JAXB classes (like on Android) or they don't want to add JAXB dependencies (for JDK >= 11). For those I think there should be an alternative without JAXB. This includes the generated classes as they carry JAXB annotations. Some already have JAXB on their classpath and don't want additional dependencies like Jackson and its transitives to blow up their deployment size and/or have dependency collisions. So to allow anyone to choose I think it is best to extract the XML parsing and allow each of it. |
I would suggest not to generate the classes at all but code them, I guess they will change rarely. So you don't have the JAXB annotations and are neutral for the binding implementation. Then increase the JDK version to 9 and use Java modules for the implementation, as described here: https://labs.consol.de/development/2017/02/13/getting-started-with-java9-modules.html So you have one maven module jollyday-base that defines an interface for a XML parser and also uses an implementation on the classpath to parse the XML data. Just shout when you need any help! |
thanks for your offer. i'll get back to you if i need some help then. |
I know we are a little bit behind the update schedule, but OpenHAB (as a consument of this library) still depends on Java 8... |
I'll keep it Java 8 compatible. |
@svendiedrichsen Is there any movement on this? I get the same error now while running |
@AlexBroadbent No, no progress so far. I haven't found time to do it. |
Adding "back"
Seems to have fixed it for me |
I got the following errors when trying to run a test with openJDK 12. I guess the com.sun.xml package was removed.
This could be related to #72
The text was updated successfully, but these errors were encountered: