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 39294 Details for
Bug 110799
[1.5] Raw bindings miss type arguments but sometimes have type parameters
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Regression test
patch_110799_test.txt (text/plain), 2.71 KB, created by
Olivier Thomann
on 2006-04-24 11:35:09 EDT
(
hide
)
Description:
Regression test
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2006-04-24 11:35:09 EDT
Size:
2.71 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.197 >diff -u -r1.197 ASTConverter15Test.java >--- src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java 19 Apr 2006 18:14:23 -0000 1.197 >+++ src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java 24 Apr 2006 15:22:52 -0000 >@@ -46,7 +46,7 @@ > } > > static { >-// TESTS_NUMBERS = new int[] { 108 }; >+// TESTS_NUMBERS = new int[] { 217 }; > // TESTS_NAMES = new String[] {"test0204"}; > } > public static Test suite() { >@@ -6789,4 +6789,50 @@ > > assertTrue("Method bindings are not identical", methodBinding == methodBinding2); > } >+ >+ /* >+ * https://bugs.eclipse.org/bugs/show_bug.cgi?id=110799 >+ */ >+ public void test0217() throws JavaModelException { >+ this.workingCopy = getWorkingCopy("/Converter15/src/X.java", true/*resolve*/); >+ String contents = >+ "class Generic<E> {\n" + >+ "}\n" + >+ "public class X {\n" + >+ " Generic raw;\n" + >+ " java.util.Collection rawCollection;\n" + >+ "}"; >+ ASTNode node = buildAST( >+ contents, >+ this.workingCopy, >+ false); >+ assertEquals("Not a compilation unit", ASTNode.COMPILATION_UNIT, node.getNodeType()); >+ CompilationUnit unit = (CompilationUnit) node; >+ assertProblemsSize(unit, 0); >+ node = getASTNode(unit, 1, 0); >+ assertEquals("Not a field declaration", ASTNode.FIELD_DECLARATION, node.getNodeType()); >+ FieldDeclaration fieldDeclaration = (FieldDeclaration) node; >+ Type type = fieldDeclaration.getType(); >+ ITypeBinding typeBinding = type.resolveBinding(); >+ assertTrue("isRaw", typeBinding.isRawType()); >+ >+ node = getASTNode(unit, 1, 1); >+ assertEquals("Not a field declaration", ASTNode.FIELD_DECLARATION, node.getNodeType()); >+ fieldDeclaration = (FieldDeclaration) node; >+ type = fieldDeclaration.getType(); >+ ITypeBinding typeBinding2 = type.resolveBinding(); >+ assertTrue("isRaw", typeBinding2.isRawType()); >+ >+ ITypeBinding[] typeParameters = typeBinding.getTypeParameters(); >+ assertEquals("Wrong size", 0, typeParameters.length); >+ >+ ITypeBinding[] typeArguments = typeBinding.getTypeArguments(); >+ assertEquals("Wrong size", 0, typeArguments.length); >+ >+ typeParameters = typeBinding2.getTypeParameters(); >+ assertEquals("Wrong size", 0, typeParameters.length); >+ >+ typeArguments = typeBinding2.getTypeArguments(); >+ assertEquals("Wrong size", 0, typeArguments.length); >+ } > } >\ No newline at end of file
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 110799
:
39293
| 39294