Fix compat-Java layer, should fix build.