Skip to content

OpenJDK Project Tests Editing and Breakpoint/Debugging Broken #4656

@asotona

Description

@asotona

Apache NetBeans version

Apache NetBeans 15

What happened

OpenJDK Project tests are not correctly resolved and parsed. As a result all tests are missing basic editor support (code completion, error annotations, goto-sources, etc...).
Any breakpoint placed into a test is identified as "outside of class" during debugging.

How to reproduce

  1. Clone OpenJDK repository from https://github.com/openjdk/jdk.git
  2. Open project src/java.base in NetBeans
  3. Open any test from source root "${jdk.root}/test/jdk" in editor
  4. Try any basic Java editor features (code completion, goto-sources, etc...)
  5. Put a breakpoint in the test
  6. Try to "Debug Test File" and watch the breakpoints are refused

Did this work correctly in an earlier version?

No / Don't know

Operating System

masOS Monterey

JDK

JDK 18

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

The problem occurs always and it is not dependent on OS nor JDK version.

Are you willing to submit a pull request?

Yes

Code of Conduct

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:bugBug report or fixneeds:triageRequires attention from one of the committers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions