-
Notifications
You must be signed in to change notification settings - Fork 88
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
JDK9 throws NumberFormatException #50
Comments
There's a new release 1.4.0 that fixes this. |
Pardon my ignorance, but isn't imageio part of JDK? Does that mean that we need to communicate with the JDK team to include the latest release? |
It used to be part of java.net but Oracle shutdown it down about a year ago, if I'm not mistaken. |
I use it for rendering PNG images:
and apparently |
According to the stack trace you provided above, you have a barcode library by nemises that triggers javax.imageio to register plugins (looking specifically for BMP image writers, I think). So maybe this library is bundled with the nemises barcode library ? |
Yep, you are absolutely right:
|
If using Maven, you can exclude the 1.3.1 dependency from barcode module and add the new 1.4.0 in your pom if 1.3.1 and 1.4.0 are binary compatible as I think. Hope that helps. |
You can try removing this dependency in https://github.com/zxing/zxing/blob/274159117ac631ef8d48913f22ec48b0bb8d7543/javase/pom.xml#L34-L39 Note that removing the dependency probably won't produce a compile error, but your tests should fail if an image codec is needed that isn't built into Java. |
Hi there,
my code works fine with JDK8, however when I try to run it with JDK9 I get this exception:
The image is rendered however, I just don't like the exception being logged.
The text was updated successfully, but these errors were encountered: