Skip to content

java.awt source code does not match the bytecode when debugging #2082

@Exidex

Description

@Exidex

What happened?

java.awt source code does not match the bytecode when debugging, but the deeper issue here is that appropriate JBR is not automatically downloaded/selected, for me temurin 21 was automatically selected.

Even for manually downloaded JBR sources do not match bytecode

Image

Relevant log output or stack trace

Steps to reproduce

Steps to reproduce:

  • Clone JetBrains/intellij-platform-plugin-template@de6b4c8
  • Open com.intellij.ide.IdeKeyboardFocusManager
  • Download sources
  • Go to dispatchEvent method
  • Place breakpoint in the beginning of the method
  • Run "Run Plugin" run configuration
  • When execution hits the breakpoint, go to java.awt source up the stack trace and see mismatched bytecode

Changing JVM to JBR was tested with:

  • Download JBR 21.0.9 (tested both jcef and non-jcef variants) in project structure SDK view
  • Change JVM in both project settings and gradle settings
  • Reload gradle project
  • Side note: this for some reason adds another JDK in External Libraries instead of replacing it

Gradle IntelliJ Plugin version

2.10.5

Gradle version

9.2.1

Operating System

Linux

Link to build, i.e. failing GitHub Action job

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions