Community
Participate
Working Groups
build I20040511 + jdtcore head add the following test to org.eclipse.jdt.core.tests.dom.ASTConverterTest public void test0XXX() throws JavaModelException { ICompilationUnit sourceUnit = getCompilationUnit("Converter" , "src", "test0XXX", "Test.java"); CompilationUnit result = (CompilationUnit)runConversion(sourceUnit, true); TypeDeclaration declaration = (TypeDeclaration)result.types().get(0); Block body = declaration.getMethods()[0].getBody(); ExpressionStatement expr = (ExpressionStatement)body.statements().get(0); MethodInvocation invocation = (MethodInvocation) expr.getExpression(); InfixExpression node = (InfixExpression)invocation.arguments().get(0); node.resolveTypeBinding(); } Test.java package test0XXX; public class Test { void foo() { "aaa".equals("a" + "a" + "a"); } } When you run the test an ClassCastException occur. This bug cause a failure of a JDT/UI test org.eclipse.jdt.ui.tests.quickfix.AssistQuickFixTest#testInvertEquals21()
Fixed and released in HEAD. Regression test added.
Verified for 3.0M9