ancient-vegetable-10556
11/08/2021, 5:07 PMDuplicateElementErrorTest.java
) that has an inline class extends AbstractModule
, and AbstractModule
has a method which takes Matcher<T>
as a parameter.
javac
is failing to compile DuplicateElementErrorTest
because there’s no class file for Matcher
availableMatcher
is generic means the class file needs to be present during compilation in order for the compiler for AbstractModule
to verify type boundswitty-crayon-22786
11/08/2021, 5:11 PMMatcher
should be “exported” by files that use itexports
a dep, it is available to consumers of the target, even when they only depend on the targetexport
Matcher
in this case when we see it in the implements $X
or extends $X
positionancient-vegetable-10556
11/08/2021, 5:15 PMwitty-crayon-22786
11/08/2021, 5:15 PMancient-vegetable-10556
11/08/2021, 5:15 PMpublic void foo(Matcher<T> matcher) {}
` which needs the definition of Matcher
to be available to figure out the type boundswitty-crayon-22786
11/08/2021, 5:17 PMancient-vegetable-10556
11/08/2021, 5:17 PMfast-nail-55400
11/08/2021, 5:20 PMancient-vegetable-10556
11/08/2021, 5:21 PMfast-nail-55400
11/08/2021, 5:22 PMjava-dump-first-party-dep-map
debug goal will dump the dep inf mapping.ancient-vegetable-10556
11/08/2021, 5:22 PMfast-nail-55400
11/08/2021, 5:22 PMancient-vegetable-10556
11/08/2021, 7:25 PMfast-nail-55400
11/08/2021, 7:27 PMMatcher
ancient-vegetable-10556
11/08/2021, 7:27 PMfast-nail-55400
11/08/2021, 7:27 PMwitty-crayon-22786
11/08/2021, 7:27 PMtype_map
when i use it, rather than a consumed mapancient-vegetable-10556
11/08/2021, 7:27 PMfast-nail-55400
11/08/2021, 7:28 PMto_json_dict
method thenancient-vegetable-10556
11/08/2021, 7:29 PMfast-nail-55400
11/08/2021, 7:29 PMwitty-crayon-22786
11/08/2021, 7:29 PMancient-vegetable-10556
11/08/2021, 7:29 PMPackageRootedDependencyMap
only tracks the `type_……… yeah thatfast-nail-55400
11/08/2021, 7:29 PMMultiGet
the JavaSourceDependencyAnalysis
for the targets and then output the .consumed_unqualified_types
fieldwitty-crayon-22786
11/08/2021, 7:31 PMfast-nail-55400
11/08/2021, 7:32 PMwitty-crayon-22786
11/08/2021, 7:33 PMfast-nail-55400
11/08/2021, 7:33 PMguice
to use third-party dep inference instead, but I haven’t had the time to do that (and probably won’t since scala dep inf is the priority for me)witty-crayon-22786
11/08/2021, 7:33 PMhazelcast
.ancient-vegetable-10556
11/08/2021, 7:35 PM