mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
![]() In Xlang(Python call Java), a Java method which overrides a `default` method of the super class is not able to be invoked successfully, due to we treat it as overloaded method instead of overrided method. This PR correctly handle it at the case it overrides a `default` method. Before this PR, the following usage is not able to be invoked from Python -> Java. ```Java public interface ExampleInterface { default String echo(String inp) { return inp; } } public class ExampleImpl implements ExampleInterface { @Override public String echo(String inp) { return inp + " echo"; } } ``` ```python /// Invoke it in Python. cls = ray.java_actor_class("io.ray.serve.util.ExampleImpl") handle = cls.remote() print(ray.get(handle.echo.remote("hi"))) ``` |
||
---|---|---|
.. | ||
api | ||
performance_test | ||
runtime | ||
serve | ||
test | ||
build-jar-multiplatform.sh | ||
BUILD.bazel | ||
checkstyle-suppressions.xml | ||
checkstyle.xml | ||
cleanup.sh | ||
dependencies.bzl | ||
generate_jni_header_files.sh | ||
pom.xml | ||
shade_rule | ||
test.sh | ||
testng.xml |