Bug 90580

Summary: JavaCore.getOptions return incomplete options in tests
Product: [Eclipse Project] JDT Reporter: Martin Aeschlimann <martinae>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: gunnar
Version: 3.1   
Target Milestone: 3.1 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Martin Aeschlimann CLA 2005-04-07 04:39:58 EDT
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().
Comment 1 Frederic Fusier CLA 2005-05-07 12:56:13 EDT
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...)
Comment 2 Maxime Daniel CLA 2005-05-12 07:58:14 EDT
Verified for 3.1 M7 using build I20050509-2010 + jdt.core HEAD (full test run
with assertion enable, no assertion raised)