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 21860 Details for
Bug 96646
[1.5][compiler] VerifyError - Generics and Interfaces - "Wrong return type in function"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Apply on HEAD
patch_96646.txt (text/plain), 2.77 KB, created by
Olivier Thomann
on 2005-05-26 16:39:46 EDT
(
hide
)
Description:
Apply on HEAD
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2005-05-26 16:39:46 EDT
Size:
2.77 KB
patch
obsolete
>Index: compiler/org/eclipse/jdt/internal/compiler/ClassFile.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ClassFile.java,v >retrieving revision 1.108 >diff -u -r1.108 ClassFile.java >--- compiler/org/eclipse/jdt/internal/compiler/ClassFile.java 20 May 2005 20:02:27 -0000 1.108 >+++ compiler/org/eclipse/jdt/internal/compiler/ClassFile.java 26 May 2005 20:39:19 -0000 >@@ -1469,11 +1469,12 @@ > */ > public void addSyntheticMethodAccessMethod(SyntheticMethodBinding methodBinding) { > generateMethodInfoHeader(methodBinding); >- // We know that we won't get more than 2 attribute: the code attribute + synthetic attribute >- contents[contentsOffset++] = 0; >- contents[contentsOffset++] = 2; >+ int methodAttributeOffset = this.contentsOffset; >+ // this will add exception attribute, synthetic attribute, deprecated attribute,... >+ int attributeNumber = generateMethodInfoAttribute(methodBinding); > // Code attribute > int codeAttributeOffset = contentsOffset; >+ attributeNumber++; // add code attribute > generateCodeAttributeHeader(); > codeStream.init(this); > codeStream.generateSyntheticBodyForMethodAccess(methodBinding); >@@ -1485,16 +1486,9 @@ > .referenceCompilationUnit() > .compilationResult > .lineSeparatorPositions); >- // add the synthetic attribute >- int syntheticAttributeNameIndex = >- constantPool.literalIndex(AttributeNamesConstants.SyntheticName); >- contents[contentsOffset++] = (byte) (syntheticAttributeNameIndex >> 8); >- contents[contentsOffset++] = (byte) syntheticAttributeNameIndex; >- // the length of a synthetic attribute is equals to 0 >- contents[contentsOffset++] = 0; >- contents[contentsOffset++] = 0; >- contents[contentsOffset++] = 0; >- contents[contentsOffset++] = 0; >+ // update the number of attributes >+ contents[methodAttributeOffset++] = (byte) (attributeNumber >> 8); >+ contents[methodAttributeOffset] = (byte) attributeNumber; > } > > /** >Index: compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java,v >retrieving revision 1.106 >diff -u -r1.106 CodeStream.java >--- compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java 20 May 2005 20:02:27 -0000 1.106 >+++ compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java 26 May 2005 20:39:19 -0000 >@@ -2134,6 +2134,9 @@ > } > } > } >+ if (!accessBinding.returnType.isBaseType()) { >+ this.checkcast(accessBinding.returnType); >+ } > if ((type = methodBinding.returnType).isBaseType()) > if (type == VoidBinding) > this.return_();
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 96646
: 21860