Weakness of "requires public"

Paul Benedict pbenedict at apache.org
Tue Jul 26 22:12:00 UTC 2016


Alex, that's one half of the puzzle. The other half would be excluding it
at compile time too. In the scenario I was giving Remi, I do not even need
M1 at compile time. It can be completely eliminated from my project.

Cheers,
Paul

On Tue, Jul 26, 2016 at 4:58 PM, Alex Buckley <alex.buckley at oracle.com>
wrote:

> On 7/26/2016 2:50 PM, Paul Benedict wrote:
>
>> Okay, I accept your scenario for what it is. You created a very nice
>> example to illustrate your point where everything must be one, but
>> you know not every project is like this. The whole discussion with
>> Joda Time was based on having additional functionality from classes
>> which were optional at runtime. I am raising the issue that
>> transitive dependencies are also sometimes optional at runtime. Where
>> is the relief for this scenario? It doesn't exist -- but it should.
>>
>
> The #CompileTimeDependences proposal allows transitive dependencies to
> be optional at run time. It's the 'requires public static ...' use case.
>
> Alex
>


More information about the jigsaw-dev mailing list