aboutsummaryrefslogtreecommitdiff
path: root/java/com
AgeCommit message (Collapse)Author
2019-01-29Merge remote-tracking branch 'aosp/upstream-master' into masterColin Cross
* 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
2019-01-28Perform best-effort unescaping of command line optionscushon
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
2019-01-28Fix error reporting for resolution failures on nested annotationscushon
MOE_MIGRATED_REVID=230994917
2019-01-28Don't crash on type variables used as qualifiers in const exprscushon
MOE_MIGRATED_REVID=230937580
2019-01-28Fix an NPE in constant expression binding of malformed annotationscushon
MOE_MIGRATED_REVID=226028069
2019-01-28Reformat with google-java-formatcushon
MOE_MIGRATED_REVID=225864459
2019-01-28Miscellaneous cleanupscushon
MOE_MIGRATED_REVID=225619145
2019-01-28Report diagnostics for unterminated expressions at the beginning of the ↵cushon
expression instead of at the end of the file, which is probably farther from the problem. MOE_MIGRATED_REVID=225615449
2019-01-28Fix error reporting for import resolution errors on nested typescushon
MOE_MIGRATED_REVID=222446808
2019-01-28Add flag control for the reduced classpath optimizationcushon
MOE_MIGRATED_REVID=222103042
2019-01-24Merge remote-tracking branch 'aosp/upstream-master' into masterColin Cross
Updates turbine to upstream 5a26f8cf360ab8f450d6268574a8a8ab50588d0d. Test: m checkbuild Change-Id: I611f1edd5c9a85cf06a23916410eb9b24cab811f
2019-01-24Restore some errorprone annotationsColin Cross
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
2018-11-13Accumulate diagnostics during hierarchy and type bindingcushon
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
2018-11-06Model intersection types directlycushon
and use them to represent type variable bounds. MOE_MIGRATED_REVID=220363183
2018-10-25Remove redundant calls to hashCode()cushon
MOE_MIGRATED_REVID=218773690
2018-10-25Implement ClassValue equals and hashCodecushon
(now that Type also implements equals and hashCode) MOE_MIGRATED_REVID=218773629
2018-10-25Make a switch exhaustivecushon
MOE_MIGRATED_REVID=218773246
2018-10-23Use AutoValue for Type module objectscushon
in order to get equals and hashCode implementations. MOE_MIGRATED_REVID=218399705
2018-10-22Fix class literal-valued annotation defaultscushon
The type of a class literal isn't necessarily a class, as in `void.class`. MOE_MIGRATED_REVID=218197987
2018-10-22Implement equals, hashCode, and toString for `Const` model objectscushon
MOE_MIGRATED_REVID=218089802
2018-10-17Fill in more of classes bound from bytecodecushon
The additional information is read in lazily, so it's inexpensive if we don't end up needing it. MOE_MIGRATED_REVID=217633111
2018-10-17Avoid containsKey callscushon
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
2018-10-17Optimize top-level index constructioncushon
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
2018-10-17Remove an unused 'throws' clausecushon
MOE_MIGRATED_REVID=217165296
2018-10-17Improve diagnostics for empty and unterminated char literalscushon
MOE_MIGRATED_REVID=216620223
2018-10-17Improve resolution error diagnosticscushon
Introduce an AST node for identifiers instead of just using String, and use the diagnostic position to improve resolution errors. MOE_MIGRATED_REVID=216452604
2018-10-17Don't crash on explicit boxing castscushon
e.g.: `static final boolean Z = (Boolean) true;` is well-formed, but not a constant expression. MOE_MIGRATED_REVID=215487485
2018-10-17Report better errors for unterminated string literalscushon
MOE_MIGRATED_REVID=215306391
2018-09-28Don't print a stack trace for top-level TurbineErrorscushon
MOE_MIGRATED_REVID=214987393
2018-09-27Canonicalization error handlingcushon
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
2018-09-11Improve parsing of type-annotated c-style array declarationscushon
MOE_MIGRATED_REVID=212488586
2018-09-10Improve usage errorscushon
Add --help text, and print usage errors instead of crashing MOE_MIGRATED_REVID=212338293
2018-09-09Handle assignment expression parse errorscushon
instead of propagating a null RHS and crashing during const expr evaluation. MOE_MIGRATED_REVID=211488577
2018-09-09Improve diagnostics for missing annotation memberscushon
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
2018-09-09Don't depend on the JDK's ElementType enumcushon
in order to support Java 11 compilation with a JDK < 11 host javabase. MOE_MIGRATED_REVID=211155545
2018-09-09Don't crash on duplicate annotation argumentscushon
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
2018-09-09Fix exit code if annotation processing is requestedcushon
MOE_MIGRATED_REVID=210113665
2018-09-09Don't crash on circular hierarchiescushon
MOE_MIGRATED_REVID=209806207
2018-09-09Don't crash on invalid constant castscushon
MOE_MIGRATED_REVID=209806176
2018-09-09Use java.util.Optional instead of guava's Optionalcushon
MOE_MIGRATED_REVID=209800977
2018-08-03Prepare turbine for JDK 10cushon
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
2018-06-18Revert "Migrate off jsr305 annotations"Colin Cross
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
2018-06-12Don't hang if we run out of input while seeking for matching `)` or `}`cushon
MOE_MIGRATED_REVID=200292694
2018-06-12Improve diagnostics for unresolvable fields inside constant expressionscushon
MOE_MIGRATED_REVID=197954529
2018-06-12Don't crash on multiple visibility modifierscushon
MOE_MIGRATED_REVID=197423090
2018-06-12Fix a crash reporting missing symbols in constant expressionscushon
MOE_MIGRATED_REVID=195301603
2018-06-12Don't report an error if a static type import cannot be resolvedcushon
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
2018-04-11Make missing symbol diagnostics more consistentcushon
and record arguments in TurbineError. MOE_MIGRATED_REVID=192525271
2018-04-10Migrate off jsr305 annotationscushon
MOE_MIGRATED_REVID=192318366
2018-04-10Improve diagnostics for missing enclosing classescushon
MOE_MIGRATED_REVID=192185656