[ 
https://issues.apache.org/jira/browse/PDFBOX-3313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15260869#comment-15260869
 ] 

Tilman Hausherr commented on PDFBOX-3313:
-----------------------------------------

I was contacted by two oracle guys (who are interested that projects try JDK9 
early releases and who noticed PDFBOX-3155), and they pointed me to [JEP 
261|http://openjdk.java.net/jeps/261]:
{quote}The java.lang.reflect.AccessibleObject::setAccessible method cannot be 
used to gain access to members of packages that are not exported by their 
defining modules; an InaccessibleObjectException will be thrown. If a framework 
library, such as a serializer, needs access to such members then the relevant 
packages must be exported to the framework module either via exports 
declarations in module descriptors or the -XaddExports command-line 
option.{quote}


> Java 9 InaccessibleObjectException
> ----------------------------------
>
>                 Key: PDFBOX-3313
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3313
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 2.0.0
>            Reporter: simon steiner
>              Labels: JDK9
>
> java -jar ~/pdf-box-svn/app/target/pdfbox-app-2.1.0-SNAPSHOT.jar PDFToImage 
> input.pdf 
> Exception in thread "main" java.lang.reflect.InaccessibleObjectException: 
> Unable to make member of class com.sun.imageio.plugins.jpeg.JPEGImageReader 
> accessible:  module java.desktop does not export com.sun.imageio.plugins.jpeg 
> to unnamed module @72d1ad2e
>       at 
> sun.reflect.Reflection.throwInaccessibleObjectException(java.base@9-ea/Reflection.java:420)
>       at 
> java.lang.reflect.AccessibleObject.checkCanSetAccessible(java.base@9-ea/AccessibleObject.java:174)
>       at 
> java.lang.reflect.Field.checkCanSetAccessible(java.base@9-ea/Field.java:170)
>       at java.lang.reflect.Field.setAccessible(java.base@9-ea/Field.java:164)
>       at org.apache.pdfbox.filter.DCTFilter.decode(DCTFilter.java:119)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to