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 51733 Details for
Bug 120082
Signature is missing capture
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Regression tests
patch_120082_tests.txt (text/plain), 3.34 KB, created by
Olivier Thomann
on 2006-10-10 19:28:19 EDT
(
hide
)
Description:
Regression tests
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2006-10-10 19:28:19 EDT
Size:
3.34 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.214 >diff -u -r1.214 ASTConverter15Test.java >--- src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java 5 Oct 2006 13:05:52 -0000 1.214 >+++ src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java 10 Oct 2006 23:28:18 -0000 >@@ -47,7 +47,7 @@ > } > > static { >-// TESTS_NUMBERS = new int[] { 228 }; >+ TESTS_NUMBERS = new int[] { 229 }; > // TESTS_NAMES = new String[] {"test0204"}; > } > public static Test suite() { >@@ -7261,4 +7261,35 @@ > binding = pair.resolveMemberValuePairBinding(); > assertNotNull("No binding", binding); > } >+ /* >+ * https://bugs.eclipse.org/bugs/show_bug.cgi?id=120082 >+ */ >+ public void test0229() throws JavaModelException { >+ this.workingCopy = getWorkingCopy("/Converter15/src/pack1/E.java", true/*resolve*/); >+ String contents = >+ "package pack1;\n" + >+ "public class E<X> {\n" + >+ " public static <T> E<T> bar(T t) {\n" + >+ " return null;\n" + >+ " }\n" + >+ "\n" + >+ " public void foo(E<?> e) {\n" + >+ " bar(e);\n" + >+ " }\n" + >+ "}"; >+ ASTNode node = buildAST( >+ contents, >+ this.workingCopy, >+ false); >+ assertEquals("Not a compilation unit", ASTNode.COMPILATION_UNIT, node.getNodeType()); >+ CompilationUnit unit = (CompilationUnit) node; >+ ASTNode node2 = getASTNode(unit, 0, 1, 0); >+ assertEquals("Not an expression statement", ASTNode.EXPRESSION_STATEMENT, node2.getNodeType()); >+ Expression expression = ((ExpressionStatement) node2).getExpression(); >+ assertEquals("Not a method invocation", ASTNode.METHOD_INVOCATION, expression.getNodeType()); >+ MethodInvocation methodInvocation = (MethodInvocation) expression; >+ ITypeBinding typeBinding = methodInvocation.resolveTypeBinding(); >+ String signature= new BindingKey(typeBinding.getKey()).toSignature(); >+ System.out.println(signature); >+ } > } >\ No newline at end of file >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.33 >diff -u -r1.33 BindingKeyTests.java >--- src/org/eclipse/jdt/core/tests/model/BindingKeyTests.java 29 Mar 2006 04:03:07 -0000 1.33 >+++ src/org/eclipse/jdt/core/tests/model/BindingKeyTests.java 10 Oct 2006 23:28:18 -0000 >@@ -350,7 +350,7 @@ > */ > public void test031() { > assertBindingKeySignatureEquals( >- "*", >+ "!*", > "Ljava/util/List;&!Lp1/X;*123;" > ); > } >@@ -360,7 +360,7 @@ > */ > public void test032() { > assertBindingKeySignatureEquals( >- "-<E:Ljava/lang/Object;>Ljava.util.List;", >+ "!-<E:Ljava/lang/Object;>Ljava.util.List;", > "Ljava/util/List;&!Lp1/X;-Ljava/util/List<TE;>;123;" > ); > } >@@ -370,7 +370,7 @@ > */ > public void test033() { > assertBindingKeySignatureEquals( >- "+Ljava.util.ArrayList;", >+ "!+Ljava.util.ArrayList;", > "Ljava/util/List;&!Lp1/X;+Ljava/util/ArrayList;123;" > ); > }
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 120082
:
51732
|
51733
|
104181