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 65770 Details for
Bug 184862
[evaluation] evaluation in static method with generics does not work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
patch
type-params.patch (text/plain), 1.70 KB, created by
Darin Wright
on 2007-05-03 10:25:11 EDT
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Darin Wright
Created:
2007-05-03 10:25:11 EDT
Size:
1.70 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.debug >Index: eval/org/eclipse/jdt/internal/debug/eval/ast/engine/SourceBasedSourceGenerator.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/engine/SourceBasedSourceGenerator.java,v >retrieving revision 1.40 >diff -u -r1.40 SourceBasedSourceGenerator.java >--- eval/org/eclipse/jdt/internal/debug/eval/ast/engine/SourceBasedSourceGenerator.java 27 Apr 2007 21:18:15 -0000 1.40 >+++ eval/org/eclipse/jdt/internal/debug/eval/ast/engine/SourceBasedSourceGenerator.java 3 May 2007 14:26:19 -0000 >@@ -237,19 +237,17 @@ > buffer.append("static "); //$NON-NLS-1$ > // add type parameters as required > if (isSourceLevelGreaterOrEqual(1, 5)) { >- for (int i = 0; i < fLocalVariableTypeNames.length; i++) { >- String typeName = fLocalVariableTypeNames[i]; >- if (fTypeParameters.contains(typeName)) { >- buffer.append(Signature.C_GENERIC_START); >- buffer.append(typeName); >- buffer.append(Signature.C_GENERIC_END); >- } >- int index = typeName.indexOf(Signature.C_GENERIC_START); >- if (index > 0) { >- String sig = typeName.substring(index); >- buffer.append(sig); >- buffer.append(' '); >+ if (!fTypeParameters.isEmpty()) { >+ Iterator iterator = fTypeParameters.iterator(); >+ buffer.append(Signature.C_GENERIC_START); >+ while (iterator.hasNext()) { >+ String name = (String) iterator.next(); >+ buffer.append(name); >+ if (iterator.hasNext()) { >+ buffer.append(", "); //$NON-NLS-1$ >+ } > } >+ buffer.append(Signature.C_GENERIC_END); > } > } > }
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 184862
: 65770 |
65783