Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 37132 Details for
Bug 133562
Extract to local variable generates variable called 'enum'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Regression test
patch_133562_tests.txt (text/plain), 1.72 KB, created by
Olivier Thomann
on 2006-03-28 15:06:29 EST
(
hide
)
Description:
Regression test
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2006-03-28 15:06:29 EST
Size:
1.72 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core.tests.model >Index: src/org/eclipse/jdt/core/tests/model/NamingConventionTests.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/NamingConventionTests.java,v >retrieving revision 1.16 >diff -u -r1.16 NamingConventionTests.java >--- src/org/eclipse/jdt/core/tests/model/NamingConventionTests.java 3 Mar 2006 14:00:43 -0000 1.16 >+++ src/org/eclipse/jdt/core/tests/model/NamingConventionTests.java 28 Mar 2006 20:06:24 -0000 >@@ -10,7 +10,9 @@ > *******************************************************************************/ > package org.eclipse.jdt.core.tests.model; > >+import java.util.HashMap; > import java.util.Hashtable; >+import java.util.Map; > > import junit.framework.Test; > >@@ -672,4 +674,30 @@ > "setIsSomething", //$NON-NLS-1$ > new String(suggestion)); > } >+/* >+ * bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=133562 >+ */ >+public void testSuggestLocalName001() { >+ Map options = this.project.getOptions(true); >+ try { >+ Map newOptions = new HashMap(options); >+ newOptions.put(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM, JavaCore.VERSION_1_5); >+ newOptions.put(JavaCore.COMPILER_SOURCE, JavaCore.VERSION_1_5); >+ newOptions.put(JavaCore.COMPILER_COMPLIANCE, JavaCore.VERSION_1_5); >+ this.project.setOptions(newOptions); >+ >+ String[] suggestions = NamingConventions.suggestLocalVariableNames( >+ project, >+ "",//$NON-NLS-1$ >+ "Enum",//$NON-NLS-1$ >+ 0, >+ new String[]{"o"}); >+ >+ assertEquals( >+ "enum1", //$NON-NLS-1$ >+ toString(suggestions)); >+ } finally { >+ this.project.setOptions(options); >+ } >+} > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 133562
:
37130
| 37132