Bug 39191

Summary: incorret java compilation error
Product: [Eclipse Project] JDT Reporter: Kelvin <kelvin>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: critical    
Priority: P3    
Version: 2.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

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 ***