Summary: | Error when inner class name has the same name than another class, but with not the same case sensitive | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Etienne Juliot <etienne.juliot> |
Component: | Core | Assignee: | Kent Johnson <kent_johnson> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 2.1.1 | ||
Target Milestone: | 3.0 M4 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
Etienne Juliot
2003-09-03 09:16:08 EDT
This problem got resolved into 3.0 development stream. *** This bug has been marked as a duplicate of 39281 *** Sorry, but I don't think it's the same bug than #39281 Because : - 39281 deals about refactoring (which is not the case here) - 39281 can be corrected just by recompile the project (not for this bug : source code must be changed) - the solution speak in 39281 (test the class output with test case sensitive) wil not resolve this bug, because Titi class and titi class must be together present at the same time. So, I don't think it's a duplicated bug. Refactoring was not the problem in 39281, it was simply causing a source change which triggered the Java incremental compiler. But you're right it is the same flavor, but a slightly different problem. Reopening. Kent - can you please investigate ? As a teaser, I checked our batch compiler behavior, and it works fine as well (as Javac). So this must be something either in the builder or in the Eclipse resource management story. I have test only with javac 1.3, so, perhaps it's normal to say it's an error with v1.4 of the java spec. (but, I think than Java must always be case sensitive, even if it's so bad to write 2 classes with same name, but with different case). But : - with 1.3 compatibility, eclipse seems to not have the same behavior than javac (who is wrong ? perhaps javac and not eclipse, I don't know) - the error message is really not clear. Thank Philippe for re-opening this bug (and hope to see you again ...). This example should produce three .class files. When I tried it with javac 1.3, it only produced 2 because Titi.class was overwritten by titi.class. I have improved our error message but Eclipse was correct in detecting this collision. Verified. |