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 31906 Details for
Bug 120264
[api] have array binding X[][][], want X[][] and X[]
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Regression test
patch_120264_tests.txt (text/plain), 1.95 KB, created by
Olivier Thomann
on 2005-12-17 19:37:24 EST
(
hide
)
Description:
Regression test
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2005-12-17 19:37:24 EST
Size:
1.95 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.179 >diff -u -r1.179 ASTConverter15Test.java >--- src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java 17 Dec 2005 13:36:43 -0000 1.179 >+++ src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java 18 Dec 2005 00:37:20 -0000 >@@ -3928,6 +3928,7 @@ > ITypeBinding[] parameterTypes = methodBinding.getParameterTypes(); > ITypeBinding parameterType = parameterTypes[0]; > assertTrue("Not an array binding", parameterType.isArray()); >+ assertTrue("Not equals", parameterType.getComponentType() == parameterType.getElementType()); > assertEquals("wrong dimension", 1, parameterType.getDimensions()); > } > >@@ -3972,8 +3973,14 @@ > ITypeBinding[] parameterTypes = methodBinding.getParameterTypes(); > ITypeBinding parameterType = parameterTypes[0]; > assertTrue("Not an array binding", parameterType.isArray()); >- assertEquals("wrong dimension", 3, parameterType.getDimensions()); >- } >+ assertEquals("wrong dimension", 3, parameterType.getDimensions()); >+ ITypeBinding componentType = parameterType.getComponentType(); >+ assertEquals("wrong dimension", 2, componentType.getDimensions()); >+ assertTrue("Not equal", parameterType.getElementType() == componentType.getElementType()); >+ ITypeBinding componentType2 = componentType.getComponentType(); >+ assertEquals("wrong dimension", 1, componentType2.getDimensions()); >+ assertTrue("Not equal", parameterType.getElementType() == componentType2.getElementType()); >+ } > > // https://bugs.eclipse.org/bugs/show_bug.cgi?id=84181 > public void test0133() throws CoreException {
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 120264
:
31905
| 31906