Community
Participate
Working Groups
the java source compare doesn't ignore whitespace differences even though I have enabled that option in Workbench->Compare/Patch. Something tells me that that option doesn't apply to java source compare and that there should be another section under Java for preferences for the java source compare!
Here is an example from a code session from today. I hit format and then ran a diff with the original code: Before format: if (getCboMaxRecords().getSelectedItem().toString().equalsIgnoreCase( "All")) { After format: if (getCboMaxRecords().getSelectedItem().toString().equalsIgnoreCase("All")) { There is no difference between these two pieces of code, the only thing that cnaged was the format, yet the diff window still shows them as being different. I am using Eclipse 3.1M4 on WinXP and I have Window->Preferences->Compare/Patch->General->Ignore Whitespace checked.
The problem seems to be that the eclipse compare is line oriented and so the "Ignore whitespace" only ignores whitespaces _within_ a line (spaces and tabs) but not newlines or carriage returns. So this doesn't really seem to be a bug (I suggest to close it - mark it as invalid) but the design. Bug #74636 proposes a change in the behaviour of "Ignore whitespace".
*** This bug has been marked as a duplicate of bug 74636 ***