Bug 579660 - Some projects have compile errors after starting eclipse
Summary: Some projects have compile errors after starting eclipse
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.23   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2022-04-11 06:42 EDT by h m CLA
Modified: 2024-04-10 16:33 EDT (History)
2 users (show)

See Also:


Attachments
error (8.46 KB, image/jpeg)
2022-04-14 21:40 EDT, h m CLA
no flags Details
error 2 (6.20 KB, image/jpeg)
2022-04-14 21:40 EDT, h m CLA
no flags Details
another errors (97.74 KB, image/jpeg)
2022-04-14 21:44 EDT, h m CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description h m CLA 2022-04-11 06:42:59 EDT
Error:
Syntax error on token "}", delete this token.

When you delete it, save project and put it again it works.
When you clean up the project it works.
Comment 1 Jeff Johnston CLA 2022-04-12 11:22:07 EDT
Moving to JDT Core to look at.  Please provide sample code to reproduce the problem or at least take a screenshot of the issue.
Comment 2 h m CLA 2022-04-12 21:53:35 EDT
Is it really needed?
Comment 3 Jay Arthanareeswaran CLA 2022-04-13 00:02:06 EDT
(In reply to h m from comment #2)
> Is it really needed?

Yes, please. What you described seems related to a specific code and without a reproducible testcase, it is impossible for us to work on this.
Comment 4 h m CLA 2022-04-14 21:40:05 EDT
Created attachment 288450 [details]
error
Comment 5 h m CLA 2022-04-14 21:40:18 EDT
Created attachment 288451 [details]
error 2
Comment 6 h m CLA 2022-04-14 21:41:10 EDT
It is often on the same classes and doesn't happen all the time. If you have some debug method I can try it.
Comment 7 h m CLA 2022-04-14 21:42:46 EDT
It may be related to /* */ comments, as both of the classes that have this error right now has them.
Comment 8 h m CLA 2022-04-14 21:44:28 EDT
Created attachment 288452 [details]
another errors
Comment 9 Jay Arthanareeswaran CLA 2022-04-18 01:30:20 EDT
(In reply to h m from comment #7)
> It may be related to /* */ comments, as both of the classes that have this
> error right now has them.

Can you attach the testcase as source code? Images don't really help us when it comes to testcases.
Comment 10 h m CLA 2022-04-18 12:10:11 EDT
I don't want to share my source code here, it happens everyday, so it's easy to  test. I'm pretty sure it happens then there are comments in there.
Comment 11 Jay Arthanareeswaran CLA 2022-04-20 02:32:34 EDT
(In reply to h m from comment #10)
> I don't want to share my source code here, it happens everyday, so it's easy
> to  test. I'm pretty sure it happens then there are comments in there.

You don't have to do that. You only have to extract it to a smaller test project or code and share it with us. There has to be something about your project/code/set-up that it only occurs with your workspace. Obviously, it's not a problem for others. So, please see if you can put it in a small reproducible testcase.
Comment 12 h m CLA 2022-04-20 02:37:09 EDT
Both classes have /* */ comments inside the method, maybe that's the case?
Comment 13 Eclipse Genie CLA 2024-04-10 16:33:37 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.