Age | Commit message (Collapse) | Author |
|
* aosp/upstream-master:
Perform best-effort unescaping of command line options
Fix error reporting for resolution failures on nested annotations
Don't crash on type variables used as qualifiers in const exprs
Use a newer version of guava
Fix an NPE in constant expression binding of malformed annotations
Reformat with google-java-format
Miscellaneous cleanups
Report diagnostics for unterminated expressions at the beginning of the expression instead of at the end of the file, which is probably farther from the problem.
Fix error reporting for import resolution errors on nested types
Add flag control for the reduced classpath optimization
Bug: 122929601
Test: m checkbuild
Change-Id: I30c0efadd5379f668772bc047d54ccfbbce118f8
|
|
ninja [1] shell-escapes paths that contain single quotes:
https://android.googlesource.com/platform/external/ninja/+/6f903faaf5488dc052ffc4e3e0b12757b426e088/src/util.cc#274
MOE_MIGRATED_REVID=231341543
|
|
MOE_MIGRATED_REVID=230994917
|
|
MOE_MIGRATED_REVID=230937580
|
|
MOE_MIGRATED_REVID=226028069
|
|
MOE_MIGRATED_REVID=225864459
|
|
MOE_MIGRATED_REVID=225619145
|
|
expression instead of at the end of the file, which is probably farther from the problem.
MOE_MIGRATED_REVID=225615449
|
|
MOE_MIGRATED_REVID=222446808
|
|
MOE_MIGRATED_REVID=222103042
|
|
Updates turbine to upstream 5a26f8cf360ab8f450d6268574a8a8ab50588d0d.
Test: m checkbuild
Change-Id: I611f1edd5c9a85cf06a23916410eb9b24cab811f
|
|
I3e4794368c1369ccb32f24e55df030afe6a784d7 converted some
com.google.errorprone.annotations.CheckReturnValue annotations back
to javax.annotation.CheckReturnValue, but there are others still
using errorprone. Convert them all back to errorprone annotations
to avoid unnecessary merge conflicts.
Test: m checkbuild
Change-Id: Ica26518e622ead18e4c45b4cbeec086597109e80
|
|
instead of failing eagerly on the first error. If there are multiple
missing symbols it's usually more helpful to report them all at once.
MOE_MIGRATED_REVID=221365669
|
|
and use them to represent type variable bounds.
MOE_MIGRATED_REVID=220363183
|
|
MOE_MIGRATED_REVID=218773690
|
|
(now that Type also implements equals and hashCode)
MOE_MIGRATED_REVID=218773629
|
|
MOE_MIGRATED_REVID=218773246
|
|
in order to get equals and hashCode implementations.
MOE_MIGRATED_REVID=218399705
|
|
The type of a class literal isn't necessarily a class, as in
`void.class`.
MOE_MIGRATED_REVID=218197987
|
|
MOE_MIGRATED_REVID=218089802
|
|
The additional information is read in lazily, so it's inexpensive if we
don't end up needing it.
MOE_MIGRATED_REVID=217633111
|
|
which showed up in a profile. In the containsKey/put case the extra map
operation on the fast path has more performance overhead than
unconditionally evaluating the value being inserted, since any expensive
values are already being evaluated lazily with Suppliers.memoize.
MOE_MIGRATED_REVID=217166646
|
|
This is a hot loop, since it processes every symbol on the classpath,
and the use of Splitter was showing up in profiles.
This change also makes the case-work for the class part of the qualified
name a little clearer.
MOE_MIGRATED_REVID=217166488
|
|
MOE_MIGRATED_REVID=217165296
|
|
MOE_MIGRATED_REVID=216620223
|
|
Introduce an AST node for identifiers instead of just using String, and
use the diagnostic position to improve resolution errors.
MOE_MIGRATED_REVID=216452604
|
|
e.g.: `static final boolean Z = (Boolean) true;` is well-formed, but not
a constant expression.
MOE_MIGRATED_REVID=215487485
|
|
MOE_MIGRATED_REVID=215306391
|
|
MOE_MIGRATED_REVID=214987393
|
|
Propagate position information from the nearest tree to the type being
canonicalized, and report an error if a missing symbol is encountered.
MOE_MIGRATED_REVID=213706370
|
|
MOE_MIGRATED_REVID=212488586
|
|
Add --help text, and print usage errors instead of crashing
MOE_MIGRATED_REVID=212338293
|
|
instead of propagating a null RHS and crashing during const expr
evaluation.
MOE_MIGRATED_REVID=211488577
|
|
A missing `value()` method was especially confusing, since we reported
"could not find value" and it was unclear that "value" referred to the
method rather than an actual value.
MOE_MIGRATED_REVID=211218232
|
|
in order to support Java 11 compilation with a JDK < 11 host javabase.
MOE_MIGRATED_REVID=211155545
|
|
e.g.`@A(1, 2)` is evaluated as `@A(value=1, value=2)` when the intent was
probably `@A({1, 2})`.
MOE_MIGRATED_REVID=211142764
|
|
MOE_MIGRATED_REVID=210113665
|
|
MOE_MIGRATED_REVID=209806207
|
|
MOE_MIGRATED_REVID=209806176
|
|
MOE_MIGRATED_REVID=209800977
|
|
Including handling module-info's in ct.sym for JDK 10 and up.
Don't assert on unsupported class file major versions; we'll
still find out if changes are necessary.
MOE_MIGRATED_REVID=207294946
|
|
This reverts upstream commit d0fcced7ecc9108d70ae2aea0ae3db00aacf3924.
We don't have checker framework in the tree, continue using jsr305.
Also convert one android.support.annotations.Nullable introduced
by db00737c711b291adf423c503284ce1dc01a13a6 to jsr305.
Test: m checkbuild
Change-Id: I3e4794368c1369ccb32f24e55df030afe6a784d7
|
|
MOE_MIGRATED_REVID=200292694
|
|
MOE_MIGRATED_REVID=197954529
|
|
MOE_MIGRATED_REVID=197423090
|
|
MOE_MIGRATED_REVID=195301603
|
|
Single-type imports are allowed to be static, but if they are they
cannot be distinguished from member imports until members are resolved.
If a static import cannot be processed during type resolution, assume it
was a non-type member instead of reporting an error.
MOE_MIGRATED_REVID=192795814
|
|
and record arguments in TurbineError.
MOE_MIGRATED_REVID=192525271
|
|
MOE_MIGRATED_REVID=192318366
|
|
MOE_MIGRATED_REVID=192185656
|