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 180738 Details for
Bug 293861
Problem with refactoring when existing jar with invalid package names
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
patch1
jbide5036-1.patch (text/plain), 1.60 KB, created by
Snjezana Peco
on 2010-10-13 04:30:37 EDT
(
hide
)
Description:
patch1
Filename:
MIME Type:
Creator:
Snjezana Peco
Created:
2010-10-13 04:30:37 EDT
Size:
1.60 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: compiler/org/eclipse/jdt/internal/compiler/lookup/BinaryTypeBinding.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/BinaryTypeBinding.java,v >retrieving revision 1.123 >diff -u -r1.123 BinaryTypeBinding.java >--- compiler/org/eclipse/jdt/internal/compiler/lookup/BinaryTypeBinding.java 21 Sep 2009 23:37:04 -0000 1.123 >+++ compiler/org/eclipse/jdt/internal/compiler/lookup/BinaryTypeBinding.java 12 Oct 2010 23:23:00 -0000 >@@ -217,6 +217,7 @@ > if ((this.tagBits & TagBits.AreMethodsComplete) != 0) > return this.methods; > >+ removeUnresolvedMethods(); > // lazily sort methods > if ((this.tagBits & TagBits.AreMethodsSorted) == 0) { > int length = this.methods.length; >@@ -239,6 +240,26 @@ > return availableMethods; > } > >+private void removeUnresolvedMethods() { >+ int methodsLength = methods.length; >+ for (int i = 0; i < methods.length; i++) { >+ MethodBinding method = methods[i]; >+ if (method == null) { >+ methodsLength--; >+ } >+ } >+ if (methodsLength != methods.length) { >+ MethodBinding[] newMethods = new MethodBinding[methodsLength]; >+ int n = 0; >+ for (int i = 0; i < methods.length; i++) { >+ if (methods[i] != null) { >+ newMethods[n++] = methods[i]; >+ } >+ } >+ methods = newMethods; >+ } >+} >+ > void cachePartsFrom(IBinaryType binaryType, boolean needFieldsAndMethods) { > try { > // default initialization for super-interfaces early, in case some aborting compilation error occurs,
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 293861
:
151012
|
151013
|
151410
|
152146
|
153222
|
153223
|
154621
|
154622
|
154957
|
155298
|
155299
|
155300
|
158473
|
158478
|
159164
|
180736
|
180737
| 180738 |
180739