FIxed java  backwards compatability