Bug 39191 - incorret java compilation error
Summary: incorret java compilation error
Status: RESOLVED DUPLICATE of bug 36032
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-20 17:43 EDT by Kelvin CLA
Modified: 2003-06-23 05:30 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kelvin CLA 2003-06-20 17:43:05 EDT
TEST CASE:

/project/src (2 files)
    - com/parasoft/test/Client.java
         : public class Client {
                public static void main() {
                    Manager manager = Factory.getManager();
                    manager.printResults();
                 }
            }
 
    - com/parasoft/test/Factory.java
          : public class Factory {
                  public static Manager getManager() {
                        return new Manager();
                  }
             }
             class Manager {
                   public void printResults() {
                   }
             }


When you build this project in eclipse, no error is found. However, when you 
open the com.parasoft.test.Client, you will find 2 errors.

It looks like eclipse cannot handle more than one class in a file.
Comment 1 Philipe Mulet CLA 2003-06-23 05:30:22 EDT
This is a known issue with secondary types fooling the editor.

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