Community
Participate
Working Groups
see bug 90446. Set a breakpoint in ASTRewriteFormatter.createIndentString, where the Assert is commented out. This place is reached from tests in TypeHierarchyNotificationTest, RenameTests, SortCompilationUnitElementsTests and CopyMoveElementsTests DefaultCodeFormatterConstants.FORMATTER_TAB_CHAR was not found in the options returned by JavaCore.getOptions(). When setting a breakpoint in JavaCore.getOptions ASTRewriteFormatter, line 134 you can see that only 5 options are returned by JavaCore.getOptions().
I've run all these test classes with uncomment assert statement in ASTRewriteFormatter.createIndentString and didn't get any trouble. So, JavaCore.getOptions() seems to work properly now... Set as FIXED as changes done in this area seem to have also fixed this bug (not sure, but perhaps fixed while implementing bug 91497...)
Verified for 3.1 M7 using build I20050509-2010 + jdt.core HEAD (full test run with assertion enable, no assertion raised)