BZ 1145683 - change if-stmt so it can work on solaris 10 - semantics slightly change, but since we don't support JVMs lower than 1.6 that means that effectively this doesn't change functionality
(cherry picked from commit 096e1049c5f8b92322339e2de7a73bb750793af7)