Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Issue 1286613002: Update errorprone to fix java 8 issues. (Closed)

Created:
5 years, 4 months ago by mikecase (-- gone --)
Modified:
5 years, 3 months ago
Reviewers:
jbudorick, Nico
CC:
chromium-reviews, jbudorick+watch_chromium.org, klundberg+watch_chromium.org, yfriedman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update errorprone to fix java 8 issues. This updates errorprone from 1.1.2 to 2.0.1. Version 2.0.1 includes some fixes that lets errorprone work if you have java 8. I also deleted the ChromiumErrorProneCompiler to just use the default ErrorProneCompiler instead. Currently, the ChromiumErrorProneCompiler doesn't override any default behavior and would need to be changed a good bit to be compatible with 2.0.1. BUG=517259 Committed: https://crrev.com/29d8817ee93db9e2ba9177a456a4992e3ad54d99 Cr-Commit-Position: refs/heads/master@{#345688}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Changed to use error_prone_core.jar. #

Patch Set 4 : Update DEPS and build files. #

Total comments: 2

Patch Set 5 : Make errorprone not spam warnings. #

Patch Set 6 : #

Total comments: 6

Patch Set 7 : Updated to use forward_variables_from function. #

Total comments: 1

Patch Set 8 : Fixed jbudorick's nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -118 lines) Patch
M DEPS View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M build/android/gyp/javac.py View 1 2 3 4 1 chunk +3 lines, -7 lines 0 comments Download
M build/config/android/internal_rules.gni View 1 2 3 4 5 6 4 chunks +63 lines, -25 lines 0 comments Download
M build/host_jar.gypi View 1 2 1 chunk +1 line, -1 line 0 comments Download
M build/java.gypi View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M build/java_apk.gypi View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/errorprone/BUILD.gn View 1 2 3 1 chunk +27 lines, -10 lines 0 comments Download
M third_party/errorprone/OWNERS View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/errorprone/README.chromium View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/errorprone/errorprone.gyp View 1 2 3 4 5 6 7 3 chunks +73 lines, -12 lines 0 comments Download
D third_party/errorprone/src/org/chromium/errorprone/ChromiumErrorProneCompiler.java View 1 chunk +0 lines, -57 lines 0 comments Download

Messages

Total messages: 24 (8 generated)
mikecase (-- gone --)
Got errorprone working with java 8. Grabbed the jar from here, https://repo1.maven.org/maven2/com/google/errorprone/error_prone_ant/2.0.4/error_prone_ant-2.0.4.jar This appears to ...
5 years, 4 months ago (2015-08-10 23:32:08 UTC) #2
mikecase (-- gone --)
Changed to use errorprone_core.jar. Will need to add javacutil-1.8.10.jar and dataflow-1.8.10.jar to third_party before I ...
5 years, 4 months ago (2015-08-14 17:29:25 UTC) #3
mikecase (-- gone --)
+thakis for review of build/ +jbudorick for review of third_party/errorprone
5 years, 4 months ago (2015-08-17 20:54:10 UTC) #5
Nico
https://codereview.chromium.org/1286613002/diff/60001/build/android/gyp/javac.py File build/android/gyp/javac.py (right): https://codereview.chromium.org/1286613002/diff/60001/build/android/gyp/javac.py#newcode67 build/android/gyp/javac.py:67: # warn so we can see more errors that ...
5 years, 4 months ago (2015-08-17 20:55:34 UTC) #6
mikecase (-- gone --)
https://codereview.chromium.org/1286613002/diff/60001/build/android/gyp/javac.py File build/android/gyp/javac.py (right): https://codereview.chromium.org/1286613002/diff/60001/build/android/gyp/javac.py#newcode67 build/android/gyp/javac.py:67: # warn so we can see more errors that ...
5 years, 4 months ago (2015-08-19 23:29:29 UTC) #7
jbudorick
https://codereview.chromium.org/1286613002/diff/100001/build/config/android/internal_rules.gni File build/config/android/internal_rules.gni (right): https://codereview.chromium.org/1286613002/diff/100001/build/config/android/internal_rules.gni#newcode125 build/config/android/internal_rules.gni:125: if (defined(invoker.testonly)) { forward_variables_from(invoker, [ "testonly" ]) https://codereview.chromium.org/1286613002/diff/100001/build/config/android/internal_rules.gni#newcode145 build/config/android/internal_rules.gni:145: ...
5 years, 4 months ago (2015-08-23 02:56:08 UTC) #8
mikecase (-- gone --)
https://codereview.chromium.org/1286613002/diff/100001/build/config/android/internal_rules.gni File build/config/android/internal_rules.gni (right): https://codereview.chromium.org/1286613002/diff/100001/build/config/android/internal_rules.gni#newcode125 build/config/android/internal_rules.gni:125: if (defined(invoker.testonly)) { On 2015/08/23 at 02:56:08, jbudorick wrote: ...
5 years, 4 months ago (2015-08-24 17:16:22 UTC) #9
jbudorick
lgtm w/ nit https://codereview.chromium.org/1286613002/diff/120001/third_party/errorprone/errorprone.gyp File third_party/errorprone/errorprone.gyp (right): https://codereview.chromium.org/1286613002/diff/120001/third_party/errorprone/errorprone.gyp#newcode64 third_party/errorprone/errorprone.gyp:64: ':error_prone_annotation_jar', nit: while this may work, ...
5 years, 4 months ago (2015-08-25 19:53:58 UTC) #10
mikecase (-- gone --)
Tested locally and gyp and gn builds work. However, an error in mojo causes errorprone ...
5 years, 4 months ago (2015-08-25 21:55:04 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1286613002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1286613002/140001
5 years, 4 months ago (2015-08-25 21:55:20 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/107591)
5 years, 4 months ago (2015-08-25 22:03:50 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1286613002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1286613002/140001
5 years, 4 months ago (2015-08-25 22:53:57 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/124487)
5 years, 4 months ago (2015-08-25 23:01:02 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1286613002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1286613002/140001
5 years, 3 months ago (2015-08-26 21:26:26 UTC) #22
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 3 months ago (2015-08-26 21:47:36 UTC) #23
commit-bot: I haz the power
5 years, 3 months ago (2015-08-26 21:48:19 UTC) #24
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/29d8817ee93db9e2ba9177a456a4992e3ad54d99
Cr-Commit-Position: refs/heads/master@{#345688}

Powered by Google App Engine
This is Rietveld 408576698