You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The BugInfoView in the Eclipse plug-in sets the SWT.NO_BACKGROUND style on its Browser instance, but the documentation for the Composite class says that the use of this style bit is undefined outside Canvas subclasses. This use has led to a regression when using the SpotBugs Eclipse plug-in in Eclipse 2021-03. The problem is that SWT.NO_BACKGROUND overlaps with the new constant SWT.EDGE for using the experimental WebView2 browser component on Windows (see Bug 572208 for SWT), and if that component is not available you get an exception:
org.eclipse.swt.SWTError: Not implemented [WebView2 runtime not found]
at org.eclipse.swt.SWT.error(SWT.java:4915)
at org.eclipse.swt.browser.Edge.createEnvironment(Edge.java:154)
at org.eclipse.swt.browser.Edge.create(Edge.java:180)
at org.eclipse.swt.browser.Browser.<init>(Browser.java:99)
at de.tobject.findbugs.view.BugInfoView.createBrowser(BugInfoView.java:189)
It seems like the fix would be simple: use SWT.NONE when creating the Browser in the BugInfoView.
The text was updated successfully, but these errors were encountered:
The
BugInfoView
in the Eclipse plug-in sets theSWT.NO_BACKGROUND
style on itsBrowser
instance, but the documentation for the Composite class says that the use of this style bit is undefined outsideCanvas
subclasses. This use has led to a regression when using the SpotBugs Eclipse plug-in in Eclipse 2021-03. The problem is thatSWT.NO_BACKGROUND
overlaps with the new constantSWT.EDGE
for using the experimental WebView2 browser component on Windows (see Bug 572208 for SWT), and if that component is not available you get an exception:It seems like the fix would be simple: use
SWT.NONE
when creating theBrowser
in theBugInfoView
.The text was updated successfully, but these errors were encountered: