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 66864 Details for
Bug 185129
NPE in LocalVariableBinding.computeUniqueKey
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Regression test
patch_185129_tests.txt (text/plain), 1.51 KB, created by
Olivier Thomann
on 2007-05-11 10:50:39 EDT
(
hide
)
Description:
Regression test
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2007-05-11 10:50:39 EDT
Size:
1.51 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core.tests.model >Index: src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java,v >retrieving revision 1.246 >diff -u -r1.246 ASTConverter15Test.java >--- src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java 9 May 2007 18:50:09 -0000 1.246 >+++ src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java 11 May 2007 14:49:32 -0000 >@@ -9076,4 +9076,26 @@ > assertTrue("Not a capture", typeBinding.isCapture()); > assertNull("No binary type", typeBinding.getBinaryName()); > } >+ //https://bugs.eclipse.org/bugs/show_bug.cgi?id=185129 >+ public void test0273() throws JavaModelException { >+ this.workingCopy = getWorkingCopy("/Converter15/src/X.java", true/*resolve*/); >+ String contents = >+ "import test0273.B;\n" + >+ "import test0273.A;\n" + >+ "public class X {\n" + >+ " Object foo() {\n" + >+ " return new B(new A());\n" + >+ " }\n" + >+ " void bar(String s) {\n" + >+ " System.out.println(s);\n" + >+ " }\n" + >+ "}"; >+ ASTNode node = buildAST( >+ contents, >+ this.workingCopy, >+ false); >+ assertEquals("Not a compilation unit", ASTNode.COMPILATION_UNIT, node.getNodeType()); >+ CompilationUnit unit = (CompilationUnit) node; >+ assertProblemsSize(unit, 1, "The type A is not generic; it cannot be parameterized with arguments <?>"); >+ } > }
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 185129
:
66705
|
66863
| 66864