Community
Participate
Working Groups
Build Identifier: I20120503-1800 Description: When the Java class has Field I and Field Dotless I at the same time, Java Editor generates the getter and the setter with the same name. It causes compiling errors. OS: Red Hat Linux 6.2 JDK: JRE 1.7.0 IBM Locale:Turkish Reproducible: Always Steps to Reproduce: 1. Create a Java project with UTF-8 encoding. 2. Import DotlessI_Field.java, attached to this report, into the Java project. 3. Menu [Source] -> [Generate Getters and Setters] 4. Select both of Field I and Field Dotless I. 5. Eclipse generates the same getter and setter names for both. 6. It causes compiling errors
Created attachment 215940 [details] DotlessI_Fıeld.java
This is a bug in IBM's and Oracle's JRE (String.equalsIgnoreCase(...).
(In reply to comment #2) > This is a bug in IBM's and Oracle's JRE (String.equalsIgnoreCase(...). Actually, that is not the problem here. The problem is that JDT Core uses Character.toUpper/LowerCase(char) instead of String.toUpper/LowerCase().
Not a regression.
Tom, can you take a look at this, time permitting.
A fix proposal pushed to Gerrit as https://git.eclipse.org/r/#/c/7112
Sorry I didn't realize this before, but I don't think there's anything to do for us. We follow the JavaBeans conventions here (bug 154823 comment 5), and java.beans.Introspector#decapitalize(String) also ignores the locale. The name conflict is therefore expected and should stay.
(In reply to comment #7) > Sorry I didn't realize this before, but I don't think there's anything to do for > us. No worries. Closing as WONTFIX.