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 33662 Details for
Bug 124388
[DOM AST] Method defaults not resolved
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Regression test
patch_for_124388_tests.txt (text/plain), 2.20 KB, created by
Olivier Thomann
on 2006-01-26 13:37:30 EST
(
hide
)
Description:
Regression test
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2006-01-26 13:37:30 EST
Size:
2.20 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core.tests.builder >Index: src/org/eclipse/jdt/core/tests/builder/ParticipantBuildTests.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.builder/src/org/eclipse/jdt/core/tests/builder/ParticipantBuildTests.java,v >retrieving revision 1.8 >diff -u -r1.8 ParticipantBuildTests.java >--- src/org/eclipse/jdt/core/tests/builder/ParticipantBuildTests.java 20 Jan 2006 17:41:23 -0000 1.8 >+++ src/org/eclipse/jdt/core/tests/builder/ParticipantBuildTests.java 26 Jan 2006 18:38:21 -0000 >@@ -33,9 +33,9 @@ > } > > public static Test suite() { >- if (false) { >+ if (true) { > TestSuite suite = new TestSuite(ParticipantBuildTests.class.getName()); >- suite.addTest(new ParticipantBuildTests("testTags")); >+ suite.addTest(new ParticipantBuildTests("testDefaultValue")); > return suite; > } > return new TestSuite(ParticipantBuildTests.class); >@@ -116,7 +116,7 @@ > expectingNoProblems(); > } > >- public void _testDefaultValue() throws JavaModelException { >+ public void testDefaultValue() throws JavaModelException { > IPath projectPath = env.addProject("Project", "1.5"); //$NON-NLS-1$ //$NON-NLS-2$ > env.addExternalJars(projectPath, Util.getJavaClassLibs()); > env.removePackageFragmentRoot(projectPath, ""); //$NON-NLS-1$ >@@ -168,7 +168,10 @@ > IMethodBinding[] annotationMethods = declaredTypes[d].getDeclaredMethods(); > for (int m = 0, mLength = annotationMethods.length; m < mLength; m++) { > if (!"value".equals(annotationMethods[m].getName())) continue; >- String defaultString = (String) annotationMethods[m].getDefaultValue(); >+ Object defaultValue = annotationMethods[m].getDefaultValue(); >+ assertTrue("Wrong class", defaultValue instanceof IVariableBinding); >+ IVariableBinding variableBinding = (IVariableBinding) defaultValue; >+ String defaultString = variableBinding.getName(); > String expected = "Eore"; > if (!expected.equals(defaultString)) { > IProblem problem = new ParticipantProblem("expecting default = " + expected + " not " + defaultString, file.getName());
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 124388
:
33235
|
33661
| 33662