Summary: | Strange behavior with wrong package declaration | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Dani Megert <daniel_megert> |
Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> |
Status: | RESOLVED WORKSFORME | QA Contact: | |
Severity: | critical | ||
Priority: | P3 | ||
Version: | 2.0 | ||
Target Milestone: | 2.1 M2 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
Dani Megert
2002-09-27 05:12:36 EDT
sorry wrong component - moving to JDT Core I presume you meant <project> instead of <workspace>. Of course - stupid me The difference is because of the Java builder change from 1.0 to 2.0. The 2.0 Java builder produces a .class file a/b/c/A.class even after the change to the package declaration. This is not a bug... just a consequence of changing the builder & how it handles this error. OK - so you say that the class with the wrong package declaration gets generated as if the package declaration was correct i.e. A.class is identical to the class that got generated if the package declaration would be correct? Does the Java spec not define how errors have to be reported? The problem with the 2.0 behavior is that if I take the source and then build with JDK it will fail, right? |