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.
[current sources] The LineDiff.diff(File first, File second, File diff) considers (content of) first == (content of) second is the first file is empty. This causes tests that (incorrectly) produce empty output file to pass even in case they should fail. I am attaching: -fix for this problem. Please note that the fix compares the length of the internal lists of lines, which should be IMO correct with respect to the ignoreEmptyLines option. But, it would be nice if a test for the "ignoreEmptyLines" existed to prove it. -a test for the LineDiff that tests for this problem. Should be placed in "nbjunit/test/unit/src/org/netbeans/junit/diff"
Created attachment 25624 [details] The fix.
Created attachment 25625 [details] The test.
Rising to P1: it seems like a huge problem to me.
Honzo, thank you for your fix and test.