Bug 92486 - private class in same package shows error in scroll bar
Summary: private class in same package shows error in scroll bar
Status: RESOLVED DUPLICATE of bug 120350
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 minor with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-23 11:46 EDT by Robert J Piercy CLA
Modified: 2006-10-06 13:48 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert J Piercy CLA 2005-04-23 11:46:18 EDT
Version: 3.0.2
Build id: 200503110845

If an private class is defined in one file, then that files needs to be open in
the editor or the red error markers on the source editor scroll bar show error
mark in any file in the same package that references the private class.  The
classes still compile correctly, but if one is opened in the source editor
without also opening the file with the private class, then the marks appear (as
well as the red "x" to access the "quick fix" context menu.

To reproduce, in first file Foo.java
package mypackage;
public class Foo{
}
class FooBar{
}

In second file, Bar.java
package mypackage;
public class Bar{
  FooBar fb;
}

Now close Foo.java.  Bar.java shows errors along the scroll bar.
Comment 1 Dirk Baeumer CLA 2005-04-25 09:12:53 EDT
Moving to JDT/Core first since the markers are generated in reconcile.
Comment 2 Olivier Thomann CLA 2006-10-06 13:48:33 EDT

*** This bug has been marked as a duplicate of 120350 ***