From: Raffy on
The support for NaN -> Indeterminate over JLink from Java ->
Mathematica is completely broken.

double[] f1() { return new double[]{Double.NaN}; }
double[] f2() { return new double[]{1/0D}; }

Evaluating f1 from Mathematica will return {-1024.}
Evaluating f2 from Mathematica will kill the kernel.

The desired behavior should be {Indeterminate} in both cases.

Are there any fixes for this or am I stuck mapping NaN's to a
different value?