Files.probeContentType() changes behaviour when ran with -d64 (Sol)

Rajendra Gutupalli Rajendra.Gutupalli at Sun.COM
Fri Jul 25 05:32:09 PDT 2008


Hi Alan,

I was just doing adhoc testing with installable builds. In Solaris sparc
and Solx86 I observed when I run with -d64 options
Files.probeContentType() just returns null but it works fine with 32 bit
java version. In linux I don't see this problem. Please see the result.

<Solaris-Sparc>
bash-3.00$ ./jdk1.7.0/bin/java  TestMime t.odt
application/vnd.oasis.opendocument.text

bash-3.00$ ./jdk1.7.0/bin/java -d64  TestMime t.odt
null
bash-3.00$ uname -a
SunOS jlab210 5.10 Generic_118833-11 sun4u sparc SUNW,Sun-Blade-2500

bash-3.00$ ./jdk1.7.0/bin/java -d64 -version
java version "1.7.0-nio2"
Java(TM) SE Runtime Environment (build 1.7.0-nio2-b93)
Java HotSpot(TM) 64-Bit Server VM (build 14.0-b01, mixed mode)
</Solaris-Sparc>

<Solaris-x86>
bash-3.00$ ./jdk1.7.0/bin/java  -d64 TestMime t.odt
null

bash-3.00$ ./jdk1.7.0/bin/java  TestMime t.odt
application/vnd.oasis.opendocument.text

</Solaris-x86>
<Linux>
bash-3.00$ uname -a
Linux jlab007.India.Sun.COM 2.6.9-34.ELsmp #1 SMP Fri Feb 24 16:56:28
EST 2006 x86_64 x86_64 x86_64 GNU/Linux

bash-3.00$ ../jdk1.7.0/bin/java TestMime t.odt
application/vnd.oasis.opendocument.text

bash-3.00$ ../jdk1.7.0/bin/java -d64 TestMime t.odt
application/vnd.oasis.opendocument.text
</Linux>

Thanks
Rajendra.




More information about the nio-dev mailing list