-
Notifications
You must be signed in to change notification settings - Fork 260
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
sun.awt.image.ByteInterleavedRaster gone in Java 9? #62
Comments
Not sure if it helps but this compiles in Java 9:
(http://stackoverflow.com/questions/6524196/java-get-pixel-array-from-image) and
etc |
Actually, now I can't compile due to references to missing classes
I made shims and switched to the slow converters and everything's working for the moment. |
I really hope they didn't remove those classes.... Is the open jdk or oracle jdk? There are some differences in internal classes. |
Oracle JDK 9b158-1. I don't see them around in this clone at least: https://github.com/netroby/jdk9-dev/tree/1f1e32c62957fac471fd49c4d597706cba281e6f/jdk/src/java.desktop/share/classes/java/awt/image |
Oh, they still seems to be here: https://github.com/netroby/jdk9-dev/tree/1f1e32c62957fac471fd49c4d597706cba281e6f/jdk/src/java.desktop/share/classes/sun/awt/image |
It's possible there's a jvm command line override to access the package: http://stackoverflow.com/questions/41265266/how-to-solve-inaccessibleobjectexception-unable-to-make-member-accessible-m |
Still not ideal, but looking at your second comment I think there might be a workaround. Worst case scenario I'll have to create an implementation specific for JDK 9. The reason these hacks are there is because BufferedImage is poorly designed from an efficiency perspective. As long as I can get access to the raw array and know the format it's encoded in this should be fast. |
Looked into this issue some more. Figured out how to still get access to the raw data. Unfortunate I have yet to figure out to get the data offset value. This means support for subimages will most likely be removed. |
I'm attempting to convince the developers of java 9 to change the api. Sounds like I missed the boat for the first release but maybe in a future update. |
Removed all references to internal sun raster classes. Should run in Java 9. Won't work with subimages in java 9 |
First of all, thanks for this library!
I'm getting this with Java 9 early access:
The text was updated successfully, but these errors were encountered: