Summary: | "Convert local to field" should know about prefixes | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Guillaume Pothier <gpothier> |
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | markus.kell.r |
Version: | 3.1 | ||
Target Milestone: | 3.1 M4 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
Guillaume Pothier
2004-11-16 06:36:53 EST
Agree. Markus, please fix for 3.1 Moving to jdt.core. The bug is in org.eclipse.jdt.core.NamingConventions: public static char[] removePrefixAndSuffixForLocalVariableName( IJavaProject javaProject, char[] localName) { AssistOptions assistOptions = new AssistOptions(javaProject.getOptions(true)); return removePrefixAndSuffix( localName, assistOptions.argumentPrefixes, assistOptions.argumentSuffixes); } => Should be *local*Prefixes/Suffixes. Thanks, Markus. That fixed it. Added regression test. Fixed and released in HEAD. Could not find regression test. Olivier what is the regression test ? The test is NamingConventionTests.testRemovePrefixAndSuffixForLocalName001() Verified (in I200412140800) that the test ensures that the prefix and suffix are correctly removed. |