JetBrains / jcef

A simple framework for embedding Chromium-based browsers into Java-based applications.
Other
244 stars 38 forks source link

WindowHandleAccessor's static initializer thwarts WindowHandleAccessor.isEnabled() #4

Open marcdownie opened 3 years ago

marcdownie commented 3 years ago

This check for a functioning JdkEx:

https://github.com/JetBrains/jcef/blob/caafb3e778d9fbc1047cb7cd4a05dac23ce27516/java/org/cef/browser/mac/CefBrowserWindowMac.java#L28

doesn't work as intended, since WindowHandleAccessor's static initializer will have already thrown here: https://github.com/JetBrains/jcef/blob/caafb3e778d9fbc1047cb7cd4a05dac23ce27516/java/com/jetbrains/cef/JdkEx.java#L75