added case for java.Double