In interactions pane, NaNs are compared incorrectly.
Example:
double d = Double.NaN;
d == d
d == Double.NaN
both return true, which is incorrect.
According to IEEE 754, all comparisons with a NaN must return false.
In non-interactive mode, the result of e.g.
System.out.println (d==d);
is correct, i.e. false.
DrJava Version : drjava-20090821-r5004 on WIn XP, Java build 1.6.0_16-b01
Same cause as bug 2881714:
Interactions panel "returns" false for 0.0 == -0.0
https://sourceforge.net/tracker/index.php?func=detail&aid=2881714&group_id=44253&atid=438935
Fixed as of revision 5138.
Fixed in SVN.