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 16643 Details for
Bug 81134
[dom] [5.0] NPE when creating AST
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Regression test
org.eclipse.jdt.core.tests.model_patch.txt (text/plain), 1.62 KB, created by
Jerome Lanneluc
on 2004-12-15 10:36:19 EST
(
hide
)
Description:
Regression test
Filename:
MIME Type:
Creator:
Jerome Lanneluc
Created:
2004-12-15 10:36:19 EST
Size:
1.62 KB
patch
obsolete
>Index: src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java,v >retrieving revision 1.78 >diff -u -r1.78 ASTConverter15Test.java >--- src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java 14 Dec 2004 18:45:24 -0000 1.78 >+++ src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java 15 Dec 2004 15:27:49 -0000 >@@ -88,7 +88,7 @@ > return new Suite(ASTConverter15Test.class); > } > TestSuite suite = new Suite(ASTConverter15Test.class.getName()); >- suite.addTest(new ASTConverter15Test("test0092")); >+ suite.addTest(new ASTConverter15Test("test0093")); > return suite; > } > >@@ -2816,4 +2816,30 @@ > workingCopy.discardWorkingCopy(); > } > } >+ >+ /* >+ * Ensures that resolving a generic method with a non existing parameter type doesn't throw a NPE when computing its binding key. >+ * (regression test for 81134 [dom] [5.0] NPE when creating AST >+ */ >+ public void test0093() throws JavaModelException { >+ ICompilationUnit workingCopy = null; >+ try { >+ workingCopy = getWorkingCopy("/Converter15/src/X.java", true/*resolve*/); >+ ASTNode node = buildAST( >+ "public class X {\n" + >+ " /*start*/<T> void foo(NonExisting arg) {\n" + >+ " }/*end*/\n" + >+ "}", >+ workingCopy); >+ IBinding binding = ((MethodDeclaration) node).resolveBinding(); >+ assertEquals( >+ null, >+ binding); >+ } finally { >+ if (workingCopy != null) >+ workingCopy.discardWorkingCopy(); >+ } >+ } >+ >+ > }
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 81134
:
16642
| 16643