This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | EditablePropertiesTest file comparisons are platform-dependent | ||
---|---|---|---|
Product: | utilities | Reporter: | _ tball <tball> |
Component: | Diff | Assignee: | Martin Entlicher <mentlicher> |
Status: | RESOLVED WONTFIX | ||
Severity: | blocker | CC: | dkonecny |
Priority: | P2 | Keywords: | TEST |
Version: | 4.x | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
_ tball
2004-08-20 19:15:45 UTC
Probably most easily fixed by deleting the file, committing, readding it with -kb, and committing. Or perhaps the code really is incorrectly handling variable newline conventions (which would I think be a bug in the diff module). "Perhaps the DiffProvider object that EditablePropertiesTest uses needs to ignore line-ending differences" - yes I agree with this. Passing to diff module for evaluation. "Probably most easily fixed by deleting the file, committing, readding it with -kb, and committing" - this would not help Jesse. What test does is that it #1) reads properties from golden property file, #2) modifies one property and saves properties to new file, #3) uses diff to compare golden file with newly created one and tests whether only the expected number of lines are different, that's 1 line should be modified but because of different line endings all lines (106) are seen as modified. The line ending differences should not be ignored by default IMHO. UNIX diff program also report differences in this case. But we can add an option for that. *** Issue 48771 has been marked as a duplicate of this issue. *** This was not a requirement on diff module => changing to Enhancement. Sounds like it will never be fixed, might as well take it off your queue. |