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 67056 Details for
Bug 186749
CCE in Scope.findMemberType
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed patch
186749.txt (text/plain), 2.29 KB, created by
Philipe Mulet
on 2007-05-14 10:14:00 EDT
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Philipe Mulet
Created:
2007-05-14 10:14:00 EDT
Size:
2.29 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java,v >retrieving revision 1.305 >diff -u -r1.305 Scope.java >--- compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java 25 Apr 2007 16:59:24 -0000 1.305 >+++ compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java 14 May 2007 14:13:40 -0000 >@@ -950,9 +950,7 @@ > while (keepLooking) { > ReferenceBinding[] itsInterfaces = currentType.superInterfaces(); > if (itsInterfaces == null) { // needed for statically imported types which don't know their hierarchy yet >- ReferenceBinding sourceType = currentType.isParameterizedType() >- ? ((ParameterizedTypeBinding) enclosingType).genericType() >- : currentType; >+ ReferenceBinding sourceType = currentType.isParameterizedType() ? ((ParameterizedTypeBinding) currentType).genericType() : currentType; > if (sourceType.isHierarchyBeingConnected()) > return null; // looking for an undefined member type in its own superclass ref > ((SourceTypeBinding) sourceType).scope.connectTypeHierarchy(); >Index: compiler/org/eclipse/jdt/internal/compiler/ast/CompilationUnitDeclaration.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/CompilationUnitDeclaration.java,v >retrieving revision 1.69 >diff -u -r1.69 CompilationUnitDeclaration.java >--- compiler/org/eclipse/jdt/internal/compiler/ast/CompilationUnitDeclaration.java 25 Apr 2007 16:59:23 -0000 1.69 >+++ compiler/org/eclipse/jdt/internal/compiler/ast/CompilationUnitDeclaration.java 14 May 2007 14:13:40 -0000 >@@ -265,7 +265,11 @@ > if (imports != null) > for (int i = 0; i < imports.length; i++) { > printIndent(indent, output).append("import "); //$NON-NLS-1$ >- imports[i].print(0, output).append(";\n"); //$NON-NLS-1$ >+ ImportReference currentImport = imports[i]; >+ if (currentImport.isStatic()) { >+ output.append("static "); //$NON-NLS-1$ >+ } >+ currentImport.print(0, output).append(";\n"); //$NON-NLS-1$ > } > > if (types != null) {
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 186749
: 67056