Commit 5ba91fc
authored
Don't use internal class (#362)
Use `CookieHandler.getDefault()` instead of the `com.sun.webkit.network.CookieManager` internal class.
`CookieHandler.getDefault()` returns an instance of `com.sun.webkit.network.CookieManager` so this change results in the same behavior.
This change fixes this error at runtime:
```
Exception in thread "JavaFX Application Thread" java.lang.IllegalAccessError: class com.okta.tools.authentication.CookieManager (in unnamed module @0x1ce24091) cannot access class com.sun.webkit.network.CookieManager (in module javafx.web) because module javafx.web does not export com.sun.webkit.network to unnamed module @0x1ce24091
```1 parent 8ef254f commit 5ba91fc
File tree
1 file changed
+1
-2
lines changed- src/main/java/com/okta/tools/authentication
1 file changed
+1
-2
lines changedLines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
| 30 | + | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
| |||
0 commit comments