witty-crayon-22786
09/15/2021, 5:51 PMwitty-crayon-22786
09/15/2021, 5:52 PMancient-vegetable-10556
09/15/2021, 5:52 PMwitty-crayon-22786
09/15/2021, 5:52 PMancient-vegetable-10556
09/15/2021, 5:53 PMwitty-crayon-22786
09/15/2021, 5:57 PMwitty-crayon-22786
09/15/2021, 5:57 PMpackage
statements. i’m about to comment about it.ancient-vegetable-10556
09/15/2021, 5:58 PMwitty-crayon-22786
09/15/2021, 5:59 PMwitty-crayon-22786
09/15/2021, 5:59 PMancient-vegetable-10556
09/15/2021, 5:59 PMwitty-crayon-22786
09/15/2021, 6:00 PMI belive that Maven metadata has a list of packages exported by a dependencyyea, JDK9 module mappings do (too?)
witty-crayon-22786
09/15/2021, 6:02 PMwitty-crayon-22786
09/15/2021, 8:53 PMbored-art-40741
09/16/2021, 12:42 AMbored-art-40741
09/16/2021, 12:43 AMbored-art-40741
09/16/2021, 12:49 AMjava.util.Date
or similar), which obviously isn't any good for dep inference, but it also isn't trivial to distinguish between that case and a "real" use like somepackage.Foo
bored-art-40741
09/16/2021, 12:52 AMbored-art-40741
09/16/2021, 12:53 AMbored-art-40741
09/16/2021, 12:55 AMbored-art-40741
09/16/2021, 12:56 AMbored-art-40741
09/16/2021, 12:57 AMbored-art-40741
09/16/2021, 1:13 AMbored-art-40741
09/16/2021, 1:15 AMwitty-crayon-22786
09/16/2021, 1:43 AMbored-art-40741
09/16/2021, 1:46 AMbored-art-40741
09/16/2021, 1:48 AMA.java
, B.java
, and ATest.java
, all with package foo.bar
, dep analysis with package-prefix level granularity will say that all 3 are in the same coarsened hairballwitty-crayon-22786
09/16/2021, 1:58 AMMy general inclination is that there is way too much code out there doing weird stuff for us to ever claim 100% coverage with our dep analysis, and we're therefore always going to have to maintain an escape hatch in the form of explicitly provided dependencies. So we should also design against that and think about when a particular case is rare enough that it doesn't justify going down a deep rabbit-hole, and we instead point the user at explicitly provided deps. I'm kind of leaning right now toward doing that with FQTs
Yeah explicitly provided deps are absolutely a valid way to avoid potentially ambiguous situations and we shouldn't be afraid of them.
witty-crayon-22786
09/16/2021, 2:00 AMwitty-crayon-22786
09/16/2021, 2:01 AMwitty-crayon-22786
09/16/2021, 2:02 AMbored-art-40741
09/16/2021, 2:04 AMbored-art-40741
09/16/2021, 2:04 AMwitty-crayon-22786
09/16/2021, 2:12 AMwitty-crayon-22786
09/16/2021, 2:21 AM