Bug 90580 - JavaCore.getOptions return incomplete options in tests
Summary: JavaCore.getOptions return incomplete options in tests
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M7   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-07 04:39 EDT by Martin Aeschlimann CLA
Modified: 2005-05-12 08:51 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)