eclipse-jdt / eclipse-jdt/eclipse.jdt.core

Compiler grabs comment lines into single blocks

Open
#3,885 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
237
Forks
195
Avg merge
1d 12h
Merged PRs (30d)
47

Description

I described a problem with cleanups here:

- https://github.com/eclipse-jdt/eclipse.jdt.ui/issues/2067#issue-2905220300

but it seems this is due to the compiler is grabbing comment lines see:

- https://github.com/eclipse-jdt/eclipse.jdt.ui/issues/2067#issuecomment-2711078503

while comments before a single block (or in the same line) seem to belong to the `break`, logically following comment lines should not belong to it anymore but belong to the next `}` or statement.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.