rules_kotlin icon indicating copy to clipboard operation
rules_kotlin copied to clipboard

Adding a plugin to module makes it ignore x-jvm-default setting

Open utikeev opened this issue 2 years ago • 0 comments

If the target has x-jvm-default setting set (either via toolchain or explicitly), but has any plugin set, the option is going to be ignored.

Here you can find minimal reproducible example: https://github.com/utikeev/bazel-kotlin-jvm-default-issue

Running bazel run //module:main-without-plugin finishes successfully, while bazel run //module:main-with-plugin fails with:

module/JavaImplementation.java:3: error: JavaImplementation is not abstract and does not override abstract method defaultMethod() in Interface
public class JavaImplementation implements Interface {
       ^
Target //module:main-with-plugin failed to build

utikeev avatar Feb 01 '23 11:02 utikeev