Bug 50272 - incorrect compile error won't go away
Summary: incorrect compile error won't go away
Status: CLOSED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2004-01-20 10:58 EST by Alexandra Stehman CLA
Modified: 2009-08-30 02:09 EDT (History)
1 user (show)

See Also:


Attachments
A screen shot showing the problematic compile error (95.30 KB, application/octet-stream)
2004-01-21 17:47 EST, Alexandra Stehman CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandra Stehman CLA 2004-01-20 10:58:22 EST
The problem is an erroneous compile error shows up in a class as a red X on 
the package and on the class. The compile error (below) is definitely 
erroneous - I open FTPClient, maintained in a separate project(this class is 
from Enterprise Data Technologies, library name is edtftp) and it sure enough 
contains the method Eclipse is complaining about:

From FTPClient.java:
    public Date modtime(String remoteFile)
 
Eclipse Compile Error:
		The method modtime(String) is undefined for the type FTPClient

The offending line of code (OLOC):
                   lastModifiedDates[i] = ftp.modtime(listings[i]); 
Where:
                   lastModifiedDates = new Date[listings.length];

And the OLOC is in this loop:
                for( int i=0; i<listings.length; i++ )
                {
                   lastModifiedDates[i] = ftp.modtime(listings[i]); 
                }        

I am using Eclipse Build id: 200311030802

I would ideally prefer to email someone the screenshot of this problem.
Comment 1 Philipe Mulet CLA 2004-01-21 11:26:15 EST
You can attach a screenshot to this bug if you want. Can you provide 
reproduceable steps to we can further investigate it ?
Comment 2 Alexandra Stehman CLA 2004-01-21 17:47:36 EST
Created attachment 7513 [details]
A screen shot showing the problematic compile error

I wouldn't know what steps to take to reproduce this bug as it just appeared
out of nowhere (seemingly).
Comment 3 Philipe Mulet CLA 2004-01-22 17:41:24 EST
Does the problem go away when performing a full rebuild ? Could you have more 
than one occurrence of the definition of the type of 'ftp' ?

Could you simplify your code to a smaller testcase you could attach to this bug 
report ?
Comment 4 Philipe Mulet CLA 2004-01-27 08:14:32 EST
Please reopen once steps to reproduce are available.
Comment 5 Alexandra Stehman CLA 2004-01-27 09:37:02 EST
There are absolutely no definite steps to reproduce this problem.  As I said, 
it just appeared one day.  I will simply continue to build with Ant outside of 
Eclipse as I have been doing for months.
Comment 6 Philipe Mulet CLA 2004-01-27 09:49:44 EST
There must be some steps to reproduce this issue, and unfortunately you need to 
provide them as we aren't aware of such an issue, and we use Eclipse 
extensively.

Are you mixing Ant build with the Eclipse compiler activity ? By doing so, you 
could clearly burn assumptions that the Eclipse compiler makes when 
incrementally compiling files (it assumes that it was in charge of generating 
them).
Comment 7 Frederic Fusier CLA 2005-02-17 09:32:23 EST
Closing as never reproduced in a long time
Comment 8 Denis Roy CLA 2009-08-30 02:09:17 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.