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

In some circumstances, the IDE does not handle `{@link JButton#JButton()}` properly

Open
#4,401 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
237
Forks
195
Avg merge
1d 10h
Merged PRs (30d)
49

Description

Similar: https://github.com/eclipse-jdt/eclipse.jdt.core/issues/3956

```
Description Resource Path Location Type
Internal compiler error: java.lang.RuntimeException: Internal Error compiling /jbutton.test/src/jbutton/test/PopupMenuButton.java at org.eclipse.jdt.internal.compiler.ProcessTaskManager.processing(ProcessTaskManager.java:139) PopupMenuButton.java /jbutton.test/src/jbutton/test line 0 Java Problem
```

Minimal reproducer:
```java
package jbutton.test;

import javax.swing.JButton;
import javax.swing.JPopupMenu;

public class PopupMenuButton extends JButton {
/**
* {@link JButton#JButton()}
*/
public PopupMenuButton(JPopupMenu m) {
super();
}
}
```

Workaround:
```diff
diff --git a/src/jbutton/test/PopupMenuButton.java b/src/jbutton/test/PopupMenuButton.java
index b965add..8e0f300 100644
--- a/src/jbutton/test/PopupMenuButton.java
+++ b/src/jbutton/test/PopupMenuButton.java
@@ -5,7 +5,7 @@ import javax.swing.JPopupMenu;

public class PopupMenuButton extends JButton {
/**
- * {@link JButton#JButton()}
+ * {@link JButton#JButton}
*/
public PopupMenuButton(JPopupMenu m) {
super();
```

Eclipse installation details (via [flatpak](https://flathub.org/en/apps/org.eclipse.Java)):
Version: 2025-09 (4.37.0)
Build id: 20250905-1456

Originating ticket: https://josm.openstreetmap.de/ticket/24467

Contributor guide

Open the contributing guide

Research direction

Start with the minimal PopupMenuButton.java reproducer and the stack location in org.eclipse.jdt.internal.compiler.ProcessTaskManager.java:139; compare the behavior with the related issue 3956. Done means compiling the reproducer no longer produces an internal compiler error for {@link JButton#JButton()} while preserving valid Javadoc link handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
compilers, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.