Re: How to access com.sun.webkit.network.CookieManager at JDK 10?

2018-08-24 Thread Kevin Rushforth
You probably already know this, but using internal interfaces is fragile and can change or break at any time and without notice. -- Kevin On 8/24/2018 7:11 AM, Nir Lisker wrote: Sorry, my reply was not phrased well. Whether you declare a module-info.java or not, you still have to add-exports

Re: How to access com.sun.webkit.network.CookieManager at JDK 10?

2018-08-24 Thread Nir Lisker
Sorry, my reply was not phrased well. Whether you declare a module-info.java or not, you still have to add-exports either via command line or during runtime. What I meant with not needing to declare a dependency in module-info.java is that you don't need a 'requires' (or add-reads) because the unna

Re: How to access com.sun.webkit.network.CookieManager at JDK 10?

2018-08-24 Thread Miroslav Nachev
Now I adopted the application to be module, adding this: module my.app.Test { requires controlsfx; requires javafx.base; requires javafx.controls; } What is the next step? On Fri, Aug 24, 2018 at 4:02 PM Nir Lisker wrote: > Hi Miro, > > Can I use the 2nd option with declaration in

Re: How to access com.sun.webkit.network.CookieManager at JDK 10?

2018-08-24 Thread Nir Lisker
Hi Miro, Can I use the 2nd option with declaration in the source code, or the only > possible option is to pass as parameter when starting the application? > If your app is not a module then you don't have a module-info.java in your source code to declare the dependency. What you can do is export

Re: How to access com.sun.webkit.network.CookieManager at JDK 10?

2018-08-24 Thread Miroslav Nachev
Hi Arun, Thank you. I'm already using the first option, but then I need to access other methods and classes that are not available. Can I use the 2nd option with declaration in the source code, or the only possible option is to pass as parameter when starting the application? Miro. On Fri, Aug

Re: How to access com.sun.webkit.network.CookieManager at JDK 10?

2018-08-24 Thread Arunprasad Rajkumar
Hello Miro, CookieManager is a module private class, which is not exposed to outside. I could think of two options, 1. com.sun.webkit.network.CookieManager is a type of java.net.CookieHandler, that means after instantiating WebEngine, you can call CookieHandler.getDefault() to get the instance

How to access com.sun.webkit.network.CookieManager at JDK 10?

2018-08-23 Thread Miroslav Nachev
Hi, I have apps that work well on JDK8, but on JDK10 I do not have access to some classes, for example, com.sun.webkit.network.CookieManager. This class is the only one, that is up to date (RFC 6265) and is part of Java. The java.net.CookieManager class is obsolete: RFC 2965. The Cookie solution i