| Summary: | incorret java compilation error | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Kelvin <kelvin> |
| Component: | Core | Assignee: | 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: | |||
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.