Bug 436321 - [compiler] In some cases the compiler reports errors twice
Summary: [compiler] In some cases the compiler reports errors twice
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Jay Arthanareeswaran CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-01 22:04 EDT by Martin Mathew CLA
Modified: 2023-06-01 12:40 EDT (History)
3 users (show)

See Also:


Attachments
Screenshot showing duplicate entry (18.09 KB, image/png)
2014-06-01 22:04 EDT, Martin Mathew CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mathew CLA 2014-06-01 22:04:26 EDT
Created attachment 243764 [details]
Screenshot showing duplicate entry

Copy and paste the below code snippet to Package Explorer View:
package p1;

public class C2 extends Test, implements I1, I2 {
abstract class Test {}

The Problems view shows 5 errors with 2 duplicate entries.
Comment 1 Paul Webster CLA 2014-06-02 09:23:47 EDT
I can reproduce the problem in Luna, but they're separate markers, we're not showing dups (the # on the end is the Marker ID, unique for that instance):

Description	Resource	Path	Location	Type	ID
Syntax error on token ",", delete this token	C2.java	/z.ex.e4/src/p1	line 3	Java Problem	2885572
Syntax error on token ",", delete this token	C2.java	/z.ex.e4/src/p1	line 3	Java Problem	2885573
Syntax error, insert "}" to complete ClassBody	C2.java	/z.ex.e4/src/p1	line 4	Java Problem	2885574
Syntax error, insert "}" to complete ClassBody	C2.java	/z.ex.e4/src/p1	line 4	Java Problem	2885575
Test cannot be resolved to a type	C2.java	/z.ex.e4/src/p1	line 3	Java Problem	2885571

PW
Comment 2 Paul Webster CLA 2014-06-02 09:24:24 EDT
Manju, can you find where those markers are created?  Are they only being fed into the system once?

PW
Comment 3 Dani Megert CLA 2014-06-03 05:04:00 EDT
The compiler issues 5 errors:

[Pb(2) Test cannot be resolved to a type, Pb(232) Syntax error on token ",", delete this token, Pb(232) Syntax error on token ",", delete this token, Pb(240) Syntax error, insert "}" to complete ClassBody, Pb(240) Syntax error, insert "}" to complete ClassBody]


Not a regression. Broken since at least 3.3.
Comment 4 Eclipse Genie CLA 2019-06-14 05:32:38 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.
Comment 5 Dani Megert CLA 2019-06-14 05:46:56 EDT
Still broken in 4.12 RC2.
Comment 6 Eclipse Genie CLA 2021-06-04 14:36:39 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.
Comment 7 Eclipse Genie CLA 2023-06-01 12:40:16 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.