Sitelet https://web.archive.org/web/20220309234935/https://github.com/apache/poi/pull/198
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

Remove jdk.charset module dependency for spreadsheets generation #198

Closed
wants to merge 1 commit into from

Conversation

robmv
Copy link

@robmv robmv commented Nov 21, 2020

Move double byte charset utility code to scratchpad...hwpf that is the only code that currently requires them. This allows using spreadsheet related code without pulling jdk.charset to custom built JREs using jlink.

@robmv robmv force-pushed the fix-jdk-charset-dep branch from 4c7055e to 05f8036 Nov 21, 2020
@robmv
Copy link
Author

@robmv robmv commented Nov 21, 2020

The build failure looks unrelated to my changes

/home/travis/build/apache/poi/build.xml:938: javac doesn't support the "release" attribute

@kiwiwings
Copy link
Contributor

@kiwiwings kiwiwings commented Nov 21, 2020

The build failure looks unrelated to my changes

/home/travis/build/apache/poi/build.xml:938: javac doesn't support the "release" attribute

If you get that warning, your javac is not running in Java 9+ mode. I thought I've changed the build in a way, that it recognizes the JVM. So it uses classpath mode for Java 8 and modulepath mode for Java 9+. if this doesn't work for your environment, I need to investigate what's the difference there ... with your help.

anyway with this warning and your proposed change, I think the tests are running in classpath mode and therefore aren't significant ...

@robmv
Copy link
Author

@robmv robmv commented Nov 21, 2020 •

If you get that warning, your javac is not running in Java 9+ mode.

My build using Java 8 says: Support for javac --release has been added in Java9 ignoring it.

The build machines say the Ant version is: Using Ant: Apache Ant(TM) version 1.9.6 compiled on July 20 2018

This is a message from current Ant that is not present in that old Ant

An Ant update on the build machines should fix it

Edit: My Ant is Apache Ant(TM) version 1.10.5 compiled on July 10 2018

@robmv
Copy link
Author

@robmv robmv commented Nov 26, 2020

If you get that warning

Just for clarifying, I don't get that error, in my machine the build is ok. The Travis CI display that error, see my previous message about the Travis CI using and older version of Ant than me

@pjfanning
Copy link
Contributor

@pjfanning pjfanning commented Dec 16, 2020

@robmv could you merge the poi trunk to your MR? I think a recent change could help with the travis build.

@robmv robmv force-pushed the fix-jdk-charset-dep branch from 05f8036 to 4cceb94 Dec 19, 2020
Move double byte charset utility code to scratchpad...hwpf that is the
only code that currently requires them. This allows using spreadsheet
related code without pulling jdk.charset to custom built JREs using
jlink.
@robmv robmv force-pushed the fix-jdk-charset-dep branch from 4cceb94 to faeb398 Dec 19, 2020
@robmv
Copy link
Author

@robmv robmv commented Dec 19, 2020

@pjfanning Done. Please note that I had to remove src/multimodule/scratchpad/test9/module-info.class that is a committed file in order to allow the build script to take the changes, and for the same reason it had to be added to the commit so the CI could take it.

I wonder if the reason compiled module-info.classare stored on git is to support building with Java 8 and still support modules, or a mistake

@robmv robmv deleted the fix-jdk-charset-dep branch Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants