workaround for bug 4071957 submitted in 1997 and still not fixed by
oracle/sun...