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 23628 Details for
Bug 100695
[1.5][search] Renaming a field of generic array type has no effect
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Patch to implement this fix
v00.txt (text/plain), 3.41 KB, created by
Frederic Fusier
on 2005-06-21 11:03:50 EDT
(
hide
)
Description:
Patch to implement this fix
Filename:
MIME Type:
Creator:
Frederic Fusier
Created:
2005-06-21 11:03:50 EDT
Size:
3.41 KB
patch
obsolete
>Index: search/org/eclipse/jdt/internal/core/search/matching/MatchLocator.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/MatchLocator.java,v >retrieving revision 1.249 >diff -u -r1.249 MatchLocator.java >--- search/org/eclipse/jdt/internal/core/search/matching/MatchLocator.java 15 Jun 2005 06:30:08 -0000 1.249 >+++ search/org/eclipse/jdt/internal/core/search/matching/MatchLocator.java 21 Jun 2005 15:01:00 -0000 >@@ -1914,7 +1914,8 @@ > MatchingNodeSet nodeSet = this.currentPossibleMatch.nodeSet; > if (BasicSearchEngine.VERBOSE) { > System.out.println("Report matching: "); //$NON-NLS-1$ >- System.out.println(" - node set:\n"+nodeSet); //$NON-NLS-1$ >+ System.out.print(" - node set: accurate="+nodeSet.matchingNodes.elementSize); //$NON-NLS-1$ >+ System.out.println(", possible="+nodeSet.possibleMatchingNodesSet.elementSize); //$NON-NLS-1$ > System.out.println(" - must resolve: "+mustResolve); //$NON-NLS-1$ > } > boolean locatorMustResolve = this.patternLocator.mustResolve; >@@ -1941,7 +1942,8 @@ > } > nodeSet.possibleMatchingNodesSet = new SimpleSet(3); > if (BasicSearchEngine.VERBOSE) { >- System.out.println(" - resolved node set:\n"+nodeSet); //$NON-NLS-1$ >+ System.out.print(" - node set: accurate="+nodeSet.matchingNodes.elementSize); //$NON-NLS-1$ >+ System.out.println(", possible="+nodeSet.possibleMatchingNodesSet.elementSize); //$NON-NLS-1$ > } > } else { > this.unitScope = null; >Index: search/org/eclipse/jdt/internal/core/search/matching/PatternLocator.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/PatternLocator.java,v >retrieving revision 1.47 >diff -u -r1.47 PatternLocator.java >--- search/org/eclipse/jdt/internal/core/search/matching/PatternLocator.java 8 Jun 2005 16:53:08 -0000 1.47 >+++ search/org/eclipse/jdt/internal/core/search/matching/PatternLocator.java 21 Jun 2005 15:01:01 -0000 >@@ -651,7 +651,6 @@ > int impossible = this.isErasureMatch ? ERASURE_MATCH : IMPOSSIBLE_MATCH; > > // pattern has type parameter(s) or type argument(s) >- boolean isRawType = type.isRawType(); > if (type.isGenericType()) { > // Binding is generic, get its type variable(s) > TypeVariableBinding[] typeVariables = null; >@@ -669,14 +668,14 @@ > } > // TODO (frederic) do we need to verify each parameter? > return level; // we can't do better >- } else if (isRawType) { >+ } else if (type.isRawType()) { > return level; // raw type always match >- } else if (!type.isParameterizedType()) { >+ } else if (!type.isParameterizedType() && !(type.isArrayType() && ((ArrayBinding)type).leafComponentType.isParameterizedType())) { > // Standard types (ie. neither generic nor parameterized nor raw types) > // cannot match pattern with type parameters or arguments > return (patternTypeArguments[depth]==null || patternTypeArguments[depth].length==0) ? level : IMPOSSIBLE_MATCH; > } else { >- ParameterizedTypeBinding paramTypeBinding = (ParameterizedTypeBinding) type; >+ ParameterizedTypeBinding paramTypeBinding = (ParameterizedTypeBinding) (type.isArrayType() ? ((ArrayBinding)type).leafComponentType : type); > > // Compare arguments only if there ones on both sides > if (patternTypeArguments[depth] != null && patternTypeArguments[depth].length > 0 &&
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 100695
: 23628