Login  Register

Strange difference between Java 8 and 6 under OSX

Posted by lechristophe on Jul 18, 2015; 12:56pm
URL: http://imagej.273.s1.nabble.com/Strange-difference-between-Java-8-and-6-under-OSX-tp5013629.html

Hi,

I just noticed something strange. I'm running exactly the same Fiji setup
on two Mac computers (it is mirrored between the two), but one uses Java 8
and the other one Java 6 (latest versions, both under Yosemite).

I have a javascript that contains a string split using the string "][".

Under Java 8, I have to escape the characters like this to make it work:
"\\]\\["
Under Java 6, I have to modify my script and use "\]\["

Is there some reason for this discrepancy? I'd like my script to be immune
to which Java people use.

Thanks for your help,

Christophe

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html