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 128056 Details for
Bug 124646
Connecting type parameter fails for local types
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_124646.txt (text/plain), 2.27 KB, created by
Olivier Thomann
on 2009-03-09 13:06:53 EDT
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2009-03-09 13:06:53 EDT
Size:
2.27 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: compiler/org/eclipse/jdt/internal/compiler/classfmt/ClassFileReader.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/classfmt/ClassFileReader.java,v >retrieving revision 1.88 >diff -u -r1.88 ClassFileReader.java >--- compiler/org/eclipse/jdt/internal/compiler/classfmt/ClassFileReader.java 3 Mar 2009 20:10:25 -0000 1.88 >+++ compiler/org/eclipse/jdt/internal/compiler/classfmt/ClassFileReader.java 9 Mar 2009 17:06:43 -0000 >@@ -51,6 +51,7 @@ > private char[] enclosingTypeName; > private char[][][] missingTypeNames; > private int enclosingNameAndTypeIndex; >+ private char[] enclosingMethod; > > private static String printTypeModifiers(int modifiers) { > java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream(); >@@ -451,17 +452,20 @@ > if (this.enclosingNameAndTypeIndex <= 0) { > return null; > } >- // read the name >- StringBuffer buffer = new StringBuffer(); >+ if (this.enclosingMethod == null) { >+ // read the name >+ StringBuffer buffer = new StringBuffer(); >+ >+ int nameAndTypeOffset = this.constantPoolOffsets[this.enclosingNameAndTypeIndex]; >+ int utf8Offset = this.constantPoolOffsets[u2At(nameAndTypeOffset + 1)]; >+ buffer.append(utf8At(utf8Offset + 3, u2At(utf8Offset + 1))); > >- int nameAndTypeOffset = this.constantPoolOffsets[this.enclosingNameAndTypeIndex]; >- int utf8Offset = this.constantPoolOffsets[u2At(nameAndTypeOffset + 1)]; >- buffer.append(utf8At(utf8Offset + 3, u2At(utf8Offset + 1))); >- >- utf8Offset = this.constantPoolOffsets[u2At(nameAndTypeOffset + 3)]; >- buffer.append(utf8At(utf8Offset + 3, u2At(utf8Offset + 1))); >- >- return String.valueOf(buffer).toCharArray(); >+ utf8Offset = this.constantPoolOffsets[u2At(nameAndTypeOffset + 3)]; >+ buffer.append(utf8At(utf8Offset + 3, u2At(utf8Offset + 1))); >+ >+ this.enclosingMethod = String.valueOf(buffer).toCharArray(); >+ } >+ return this.enclosingMethod; > } > > /* >@@ -1072,6 +1076,7 @@ > this.annotations[i].initialize(); > } > } >+ this.getEnclosingMethod(); > reset(); > } catch(RuntimeException e) { > ClassFormatException exception = new ClassFormatException(e, this.classFileName);
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 124646
: 128056