Why sun.nio.ch.SelChImpl is not accessable at HotSpot for Java7?

Remi Forax forax at univ-mlv.fr
Sun Jan 3 10:33:12 UTC 2016


And obviously because the class starts with sun.*,
this class is not accessible anymore in JDK 9 (with modules).

Rémi 

----- Mail original -----
> De: "陈雨亭" <chenyt at cs.sjtu.edu.cn>
> À: hotspot-runtime-dev at openjdk.java.net, "Alan Bateman" <Alan.Bateman at oracle.com>
> Envoyé: Dimanche 3 Janvier 2016 09:43:31
> Objet: Re: Why sun.nio.ch.SelChImpl is not accessable at HotSpot for Java7?
> 
> Thank you, Alan. I went through the source and got it.
> 
> Yuting
> 
> -----Original Message-----
> From: Alan Bateman
> Sent: Sunday, January 03, 2016 4:30 PM
> To: 陈雨亭 ; hotspot-runtime-dev at openjdk.java.net
> Subject: Re: Why sun.nio.ch.SelChImpl is not accessable at HotSpot for
> Java7?
> 
> On 03/01/2016 08:20, 陈雨亭 wrote:
> > Dear all,
> >
> > I used soot to create the class M1450550406 (see next).
> > HotSpot for Java7 says that M1450550406 cannot access
> > the superinterface sun.nio.ch.SelChImpl, while HotSpot
> > for Java8/9 and J9 for Java8 can access. Could anyone tell
> > me the reason? I checked the package and believed
> > that  the interface is in the JRE libraries.
> >
> sun.nio.ch.SelChImpl is a JDK-internal class, it was package-private in
> JDK 7 but was changed to public in JDK 8.
> 
> -Alan
> 
> 


More information about the hotspot-runtime-dev mailing list