java.lang.ClassCastException in Intellij IDEA

java.lang.ClassCastException in Intellij IDEA, JDK 17.0.4.1-linux-x64-b629.2

Environment:

  • Java: JetBrains s.r.o. 17.0.4.1
  • OS: Linux amd64
  • IDE: IntelliJ IDEA 2022.2.3
  • SonarLint: 7.1.1.54565
java.lang.ClassCastException: class java.util.concurrent.ConcurrentHashMap cannot be cast to class java.util.HashMap (java.util.concurrent.ConcurrentHashMap and java.util.HashMap are in module java.base of loader 'bootstrap')
	at c.ij.ui.jcef.HwFacadeHelper$JCEFAccessor.getHwBrowsers(HwFacadeHelper.java:74)
	at c.ij.ui.jcef.HwFacadeHelper.onShowing(HwFacadeHelper.java:150)
	at c.ij.ui.jcef.HwFacadeHelper.addNotify(HwFacadeHelper.java:204)
	at c.ij.ui.jcef.HwFacadeJPanel.addNotify(HwFacadeJPanel.java:19)
	at java.desktop/java.awt.Container.addImpl(Container.java:1150)
	at java.desktop/javax.swing.JLayeredPane.addImpl(JLayeredPane.java:233)
	at java.desktop/java.awt.Container.add(Container.java:440)
	at c.ij.ui.BalloonImpl.createComponent(BalloonImpl.java:785)
	at c.ij.ui.BalloonImpl.show(BalloonImpl.java:550)
	at c.ij.ui.BalloonImpl.show(BalloonImpl.java:457)
	at c.ij.oa.wm.impl.status.ProcessBalloon.show(ProcessBalloon.java:88)
	at c.ij.oa.wm.impl.status.ProcessBalloon.addIndicator(ProcessBalloon.java:44)
	at c.ij.oa.wm.impl.status.InfoAndProgressPanel.addProgress(InfoAndProgressPanel.java:267)
	at c.ij.oa.wm.impl.status.IdeStatusBarImpl.addProgress(IdeStatusBarImpl.java:475)
	at c.ij.oa.progress.impl.BackgroundableProcessIndicator.doBackground(BackgroundableProcessIndicator.java:147)
	at c.ij.oa.progress.impl.BackgroundableProcessIndicator.initializeStatusBar(BackgroundableProcessIndicator.java:77)

Hello @ktor,

I don’t see anything related to SonarLint in this stacktrace, and I doubt it is caused by our plugin. It happened in the past that IntelliJ’s mistakenly reported an error to us. Any chance you still have the full stacktrace somewhere ?