[java] interface fixes