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 195191 Details for
Bug 336451
"Content Assist" does not complete normally on certain types
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
proposed fix v1.0 + regression tests
patch336451.txt (text/plain), 2.93 KB, created by
Ayushman Jain
on 2011-05-10 06:25:47 EDT
(
hide
)
Description:
proposed fix v1.0 + regression tests
Filename:
MIME Type:
Creator:
Ayushman Jain
Created:
2011-05-10 06:25:47 EDT
Size:
2.93 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: model/org/eclipse/jdt/internal/core/util/BindingKeyParser.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/BindingKeyParser.java,v >retrieving revision 1.42 >diff -u -r1.42 BindingKeyParser.java >--- model/org/eclipse/jdt/internal/core/util/BindingKeyParser.java 21 Jan 2011 07:16:33 -0000 1.42 >+++ model/org/eclipse/jdt/internal/core/util/BindingKeyParser.java 10 May 2011 10:17:14 -0000 >@@ -445,6 +445,8 @@ > private boolean hasTypeName = true; > > private boolean isMalformed; >+ >+ private boolean isParsingThrownExceptions = false; // https://bugs.eclipse.org/bugs/show_bug.cgi?id=336451 > > public BindingKeyParser(BindingKeyParser parser) { > this(""); //$NON-NLS-1$ >@@ -652,7 +654,7 @@ > malformedKey(); > return; > } >- } else if (this.scanner.isAtTypeVariableStart()) { >+ } else if (!this.isParsingThrownExceptions && this.scanner.isAtTypeVariableStart()) { > parseTypeVariable(); > } else if (this.scanner.isAtWildcardStart()) { > parseWildcard(); >@@ -842,6 +844,7 @@ > while (this.scanner.isAtThrownStart() && !this.isMalformed) { > this.scanner.skipThrownStart(); > BindingKeyParser parser = newParser(); >+ parser.isParsingThrownExceptions = true; > parser.parse(); > consumeParser(parser); > consumeException(); >#P org.eclipse.jdt.core.tests.model >Index: src/org/eclipse/jdt/core/tests/model/BindingKeyTests.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/BindingKeyTests.java,v >retrieving revision 1.44 >diff -u -r1.44 BindingKeyTests.java >--- src/org/eclipse/jdt/core/tests/model/BindingKeyTests.java 6 Jan 2011 19:58:49 -0000 1.44 >+++ src/org/eclipse/jdt/core/tests/model/BindingKeyTests.java 10 May 2011 10:17:17 -0000 >@@ -639,4 +639,26 @@ > "LNullBinding~One<[LNullBinding~Outer<Ljava/lang/Integer;>.Inner<Ljava/lang/Double;>;>;" > ); > } >+ /* >+ * https://bugs.eclipse.org/bugs/show_bug.cgi?id=336451 >+ * Make sure that the binding obtained is a type binding corresponding to the >+ * method type variables >+ */ >+ public void test057() { >+ assertBindingKeySignatureEquals( >+ "TT;", >+ "LEclipseTest$InvokerIF;.invoke<T::LEclipseTest$ArgIF;>(TT;)TT;|Ljava/lang/RuntimeException;:TT;" >+ ); >+ } >+ /* >+ * https://bugs.eclipse.org/bugs/show_bug.cgi?id=336451 >+ * Make sure that the binding obtained is a type binding corresponding to the >+ * method type variables. In this case method has 2 exceptions and 2 type variables. >+ */ >+ public void test058() { >+ assertBindingKeySignatureEquals( >+ "TT;", >+ "LEclipseTest$InvokerIF;.invoke<T::LEclipseTest$ArgIF;Y:Ljava/lang/Object;>(TT;)TT;|Ljava/lang/RuntimeException;|Ljava/lang/IndexOutOfBoundsException;:TT;" >+ ); >+ } > }
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 336451
:
195119
| 195191