netbeans icon indicating copy to clipboard operation
netbeans copied to clipboard

Compile error but no line indicators

Open mclaborn opened this issue 10 months ago • 4 comments

Apache NetBeans version

Apache NetBeans 24

What happened

Same issue as https://github.com/apache/netbeans/issues/7467

Language / Project Type / NetBeans Component

No response

How to reproduce

I tried several ways to get a reproducible case but could not. Here is a description of what is happening in my current codebase.

public class OrderExportBase {} public class OrderExport extends OrderExportBase {} public abstract class OrderExportDIL extends OrderExport {} public class MMOrderExport extends OrderExportDIL {}

I deleted a private field from OrderExportBase and then followed the errors inside OrderExportBase to remove the getters, setters, etc in OrderExportBase.

On save, the background scanning ran for a while (25 - 20 seconds).

Then an error showed on the tab of OrderExportDIL. OrderExportDIL references the getters and setters I removed. The statements referencing those getters and setters are in italics but there is no error marker in the gutter and no red underline.

Did this work correctly in an earlier version?

No / Don't know

Operating System

Ubuntu 24.04

JDK

17.0.13; OpenJDK 64-Bit Server VM 17.0.13+11-Ubuntu-2ubuntu124.04

Apache NetBeans packaging

Apache NetBeans binary zip

Anything else

No response

Are you willing to submit a pull request?

No

mclaborn avatar Jan 22 '25 18:01 mclaborn

In case it matters the classes in my example are in 3 different projects: A: OrderExportBase, OrderExport B: OrderExportDIL C: MMOrderExport

mclaborn avatar Jan 22 '25 18:01 mclaborn

In case it matters the classes in my example are in 3 different projects: A: OrderExportBase, OrderExport B: OrderExportDIL C: MMOrderExport

Could you add a minimal working example (with the 3 projects) to make this report complete? That way, we are sure we are on the same page.

homberghp avatar Jun 23 '25 14:06 homberghp

By the way, while playing with your brief description I stumbled on another issue: #8616 While working with it I got an error-bulb on the status line. I will report that as a separate bug, but it may be related.

homberghp avatar Jun 23 '25 14:06 homberghp

I am not able to reproduce this on demand. Next time it happens I'll see if I can get a reproducible example.

mclaborn avatar Jun 23 '25 16:06 mclaborn