eolivelli opened a new issue #804: OrderedSafeExecutor exposes shaded guava API ListenableFuture URL: https://github.com/apache/bookkeeper/issues/804 I don't know how to classify this, as a feature request or bug, anyhow the problem is this: org.apache.bookkeeper.util.OrderedSafeExecutor uses ListenableFuture which is in Guava and we are shading Guava. Building a downstream project which uses OrderedSafeExecutor#submitOrdered `public ListenableFuture<?> submitOrdered(Object orderingKey, SafeRunnable r)` I get this error, compiling the project on Java 9 (BK is is the classpath, not using the module-path), the error is not present while using Java8 ``` XXXX.java:[84,26] error: cannot access ListenableFuture class file for bk-shade.com.google.common.util.concurrent.ListenableFuture not found ``` Is OrderedSafeExecutor considered public API or internal API ? if it is considered "public API" we have to drop references to shaded libraries, if we want to consider it "internal API" we can mark this issue as "won't fix" From a brief analysis of code on BK (not dealing with DL for instance) the returned value of that method is never used so we could: - drop the return type - change the return type to "Future"
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
