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 15600 Details for
Bug 76780
[model] return type not recognized correctly on some generic methods
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
org.eclipse.jdt.core_patch.txt (text/plain), 1.35 KB, created by
Jerome Lanneluc
on 2004-11-03 09:25:10 EST
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Jerome Lanneluc
Created:
2004-11-03 09:25:10 EST
Size:
1.35 KB
patch
obsolete
>Index: model/org/eclipse/jdt/internal/compiler/parser/SourceTypeConverter.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/compiler/parser/SourceTypeConverter.java,v >retrieving revision 1.19 >diff -u -r1.19 SourceTypeConverter.java >--- model/org/eclipse/jdt/internal/compiler/parser/SourceTypeConverter.java 2 Nov 2004 14:14:03 -0000 1.19 >+++ model/org/eclipse/jdt/internal/compiler/parser/SourceTypeConverter.java 3 Nov 2004 14:09:39 -0000 >@@ -536,11 +536,16 @@ > parameter.sourceEnd = end; > if (typeParameterBounds != null) { > int length = typeParameterBounds.length; >- parameter.bounds = new TypeReference[length]; >- for (int i = 0; i < length; i++) { >- TypeReference bound = createTypeReference(typeParameterBounds[i], start, end); >- bound.bits |= ASTNode.IsSuperType; >- parameter.bounds[i] = bound; >+ if (length > 0) { >+ parameter.type = createTypeReference(typeParameterBounds[0], start, end); >+ if (length > 1) { >+ parameter.bounds = new TypeReference[length-1]; >+ for (int i = 1; i < length; i++) { >+ TypeReference bound = createTypeReference(typeParameterBounds[i], start, end); >+ bound.bits |= ASTNode.IsSuperType; >+ parameter.bounds[i+1] = bound; >+ } >+ } > } > } > return parameter;
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 76780
: 15600 |
15601