Bug 407967 - Compile Issue- Even if the class reference is present
Summary: Compile Issue- Even if the class reference is present
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.6.2   Edit
Hardware: PC Windows XP
: P3 blocker (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2013-05-14 02:09 EDT by Anand Bhat CLA
Modified: 2014-06-30 08:55 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anand Bhat CLA 2013-05-14 02:09:07 EDT
It sometimes happens that during the EE projects, sometimes when compiling the class file, there is an error shows that the reference cannot be resolved even if the reference is clearly present. I doubt that this is actually because of the earlier cache with which the compiler works where it is not able to see the changes may be. 

The resolution what i do is that i select the whole class content (Ctrl+A) and cut it (Ctrl + X) and the paste it back (Ctrl + V). Then save the file. The reference then works fine.

It happened with me many times but not specifically with any particular class for which i am not able to send the attachment. Happened in Eclipse Helios 3.6.2
Comment 1 Jay Arthanareeswaran CLA 2013-05-14 03:55:40 EDT
We need more information. Try to isolate the issue and having the steps to reproduce the issue would be most welcome.

Do you see it only with the Java EE projects and not with regular Java projects? Could you try it with a newer build and see if the problem goes away. Lot of fixes have gone in since 3.6.2
Comment 2 Anand Bhat CLA 2013-05-14 05:48:10 EDT
It may take time for me to again reproduce the scenario. I will be getting back to you with the steps once i again discover the same. Thanks for your time!
Comment 3 Dani Megert CLA 2014-06-30 08:55:23 EDT
Please reopen if you can provide steps to reproduce the problem.