Open Abnaxos opened 2 years ago
It may seem like a good idea to provide defaults in the feature interface for common use cases, the library used to do this in several instances, e.g.
@Feature interface ForkJoinPoolFeature { @Provision ForkJoinPool forkJoinPool() { return ForkJoinPool.commonPool(); } }
However, since 0.2 doesn't allow overriding provisions in configurations any more (#104), doing this will cause conflicts. Doing this is basically asking for unresolvable conflicts. Don't do this.
Add a warning to the processor.
It may seem like a good idea to provide defaults in the feature interface for common use cases, the library used to do this in several instances, e.g.
However, since 0.2 doesn't allow overriding provisions in configurations any more (#104), doing this will cause conflicts. Doing this is basically asking for unresolvable conflicts. Don't do this.
Add a warning to the processor.