### 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());