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 54494 Details for
Bug 165701
[model] NPE while computing method unique key
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed patch
v00.txt (text/plain), 2.45 KB, created by
Frederic Fusier
on 2006-11-24 13:57:28 EST
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Frederic Fusier
Created:
2006-11-24 13:57:28 EST
Size:
2.45 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core.tests.model >Index: src/org/eclipse/jdt/core/tests/model/SelectionJavadocModelTests.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/SelectionJavadocModelTests.java,v >retrieving revision 1.8 >diff -u -r1.8 SelectionJavadocModelTests.java >--- src/org/eclipse/jdt/core/tests/model/SelectionJavadocModelTests.java 14 Jun 2006 10:53:55 -0000 1.8 >+++ src/org/eclipse/jdt/core/tests/model/SelectionJavadocModelTests.java 24 Nov 2006 18:54:47 -0000 >@@ -919,4 +919,70 @@ > elements > ); > } >+ >+ /** >+ * @bug 165701: [model] No hint for ambiguous javadoc >+ * @test Ensure that no exception is thrown while selecting method in javadoc comment >+ * @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=165701" >+ */ >+ public void testBug165701() throws JavaModelException { >+ setUnit("b165701/Test.java", >+ "package b165701;\n" + >+ "/**\n" + >+ " * @see #fooo(int)\n" + >+ " */\n" + >+ "public class Test {\n" + >+ " public void foo() {}\n" + >+ "}\n" >+ ); >+ int[] selectionPositions = selectionInfo(workingCopies[0], "fooo", 1); >+ IJavaElement[] elements = workingCopies[0].codeSelect(selectionPositions[0], 0); >+ assertElementsEqual("Invalid selection(s)", >+ "Test [in [Working copy] Test.java [in b165701 [in <project root> [in Tests]]]]", >+ elements >+ ); >+ } > } >#P org.eclipse.jdt.core >Index: compiler/org/eclipse/jdt/internal/compiler/lookup/MethodBinding.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/MethodBinding.java,v >retrieving revision 1.84 >diff -u -r1.84 MethodBinding.java >--- compiler/org/eclipse/jdt/internal/compiler/lookup/MethodBinding.java 6 Nov 2006 14:19:56 -0000 1.84 >+++ compiler/org/eclipse/jdt/internal/compiler/lookup/MethodBinding.java 24 Nov 2006 18:54:48 -0000 >@@ -325,7 +325,7 @@ > int signatureLength = sig.length; > > // thrown exceptions >- int thrownExceptionsLength = this.thrownExceptions.length; >+ int thrownExceptionsLength = this.thrownExceptions == null ? 0 : this.thrownExceptions.length; > int thrownExceptionsSignatureLength = 0; > char[][] thrownExceptionsSignatures = null; > boolean addThrownExceptions = thrownExceptionsLength > 0 && (!isGeneric || CharOperation.lastIndexOf('^', sig) < 0);
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 165701
:
54429
|
54430
| 54494