Bug 576435 - Quickfix "Surround with try/catch" is displayed for compile error
Summary: Quickfix "Surround with try/catch" is displayed for compile error
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.21   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-05 04:10 EDT by Dieter Mai CLA
Modified: 2023-09-26 07:34 EDT (History)
0 users

See Also:


Attachments
wrong quick fix (25.99 KB, image/png)
2021-10-05 04:10 EDT, Dieter Mai CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dieter Mai CLA 2021-10-05 04:10:16 EDT
Created attachment 287257 [details]
wrong quick fix

If a static reference is done on a method that is not static, Eclipse suggests the quickfix "Surround with try/catch". you cant really catch a compile error. That's not how java works.

In my case, the method was inside a record. I dont know if this is relevant.

See screenshot
Comment 1 Eclipse Genie CLA 2023-09-26 07:34:17 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.