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

Issue 1136573002: Use the Errorprone Compiler (Closed)

Created:
5 years, 7 months ago by raywilliams
Modified:
5 years, 6 months ago
CC:
chromium-reviews, cjhopman+watch_chromium.org, jbudorick+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add the Errorprone Java Compiler These changes let the errorprone compiler find problems when building Android. A global flag disabled Errorprone by default. When enabled, code problems will be shown with suggestions on how to fix them. BUG=485599 Committed: https://crrev.com/6ffb1179d6adf08edd64848b45b7415b6b6de43d Cr-Commit-Position: refs/heads/master@{#335509}

Patch Set 1 : Using the Compiler #

Total comments: 29

Patch Set 2 : Reverted unwanted changes #

Patch Set 3 : Combined files from third_party #

Patch Set 4 : Changed default to disabled #

Total comments: 40

Patch Set 5 : Addressed Review Comments #

Patch Set 6 : Extracted some constants #

Total comments: 15

Patch Set 7 : Addressed Review Comments #

Patch Set 8 : Renamed an option #

Patch Set 9 : Change Global Flag #

Total comments: 6

Patch Set 10 : Addressed Review Comments #

Patch Set 11 : Rebase and parser update #

Total comments: 9

Patch Set 12 : Cleanup and testing #

Total comments: 4

Patch Set 13 : use public jar instead of local #

Total comments: 2

Patch Set 14 : toggled a flag #

Patch Set 15 : removed mode from sun jar copy #

Patch Set 16 : Full Sync and Update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+383 lines, -10 lines) Patch
M DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +3 lines, -0 lines 0 comments Download
A build/android/BUILD.gn View 1 chunk +26 lines, -0 lines 0 comments Download
A build/android/gyp/find_sun_tools_jar.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +56 lines, -0 lines 0 comments Download
M build/android/gyp/javac.py View 1 2 3 4 5 6 7 4 chunks +24 lines, -2 lines 0 comments Download
M build/android/setup.gyp View 1 1 chunk +29 lines, -0 lines 0 comments Download
M build/config/android/config.gni View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M build/config/android/internal_rules.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +16 lines, -1 line 0 comments Download
M build/config/android/rules.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +14 lines, -0 lines 0 comments Download
M build/host_jar.gypi View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +21 lines, -6 lines 0 comments Download
M build/java.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +19 lines, -0 lines 0 comments Download
M build/java_apk.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +19 lines, -1 line 0 comments Download
A third_party/errorprone/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +22 lines, -0 lines 0 comments Download
A + third_party/errorprone/LICENSE View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/errorprone/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
A third_party/errorprone/README.chromium View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/errorprone/errorprone.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +58 lines, -0 lines 0 comments Download
A third_party/errorprone/src/org/chromium/errorprone/ChromiumErrorProneCompiler.java View 1 2 1 chunk +57 lines, -0 lines 0 comments Download

Messages

Total messages: 51 (9 generated)
raywilliams
5 years, 7 months ago (2015-05-07 18:26:03 UTC) #2
jbudorick
https://codereview.chromium.org/1136573002/diff/1/BUILD.gn File BUILD.gn (right): https://codereview.chromium.org/1136573002/diff/1/BUILD.gn#newcode222 BUILD.gn:222: "//third_party/errorprone:chromium_errorprone", I'm not sure that this needs to be ...
5 years, 7 months ago (2015-05-07 18:49:27 UTC) #3
raywilliams
Thanks for reviewing. Sorry, had a few unrelated changes in there. I backed up my ...
5 years, 7 months ago (2015-05-07 19:07:00 UTC) #4
raywilliams
5 years, 7 months ago (2015-05-07 19:07:18 UTC) #5
cjhopman
https://codereview.chromium.org/1136573002/diff/1/build/android/gyp/find_sun_tools_jar.py File build/android/gyp/find_sun_tools_jar.py (right): https://codereview.chromium.org/1136573002/diff/1/build/android/gyp/find_sun_tools_jar.py#newcode21 build/android/gyp/find_sun_tools_jar.py:21: parser.add_option('--output', help='Path to copy the tools.jar to.') On 2015/05/07 ...
5 years, 7 months ago (2015-05-07 19:15:18 UTC) #6
raywilliams_chromium
Addressed comments https://codereview.chromium.org/1136573002/diff/1/BUILD.gn File BUILD.gn (right): https://codereview.chromium.org/1136573002/diff/1/BUILD.gn#newcode222 BUILD.gn:222: "//third_party/errorprone:chromium_errorprone", On 2015/05/07 18:49:26, jbudorick wrote: > ...
5 years, 7 months ago (2015-05-11 19:52:25 UTC) #8
raywilliams_chromium
New patch set, addressed comments, changed disable flag to enable flag, default to disabled
5 years, 7 months ago (2015-05-11 19:54:34 UTC) #9
jbudorick
I do think the jar should be in a third_party/errorprone/lib/ directory that gets DEPS'ed in ...
5 years, 7 months ago (2015-05-15 18:37:13 UTC) #10
raywilliams_chromium
https://codereview.chromium.org/1136573002/diff/60001/build/android/gyp/find_sun_tools_jar.py File build/android/gyp/find_sun_tools_jar.py (right): https://codereview.chromium.org/1136573002/diff/60001/build/android/gyp/find_sun_tools_jar.py#newcode18 build/android/gyp/find_sun_tools_jar.py:18: def main(argv): On 2015/05/15 18:37:12, jbudorick wrote: > nit: ...
5 years, 7 months ago (2015-05-18 19:53:24 UTC) #11
jbudorick
didn't re-review yet, just following up https://codereview.chromium.org/1136573002/diff/60001/build/android/gyp/find_sun_tools_jar.py File build/android/gyp/find_sun_tools_jar.py (right): https://codereview.chromium.org/1136573002/diff/60001/build/android/gyp/find_sun_tools_jar.py#newcode27 build/android/gyp/find_sun_tools_jar.py:27: rt_jar_finder = re.compile(r'\[Opened ...
5 years, 7 months ago (2015-05-18 19:58:32 UTC) #12
raywilliams_chromium
Thanks for the review https://codereview.chromium.org/1136573002/diff/60001/build/android/gyp/find_sun_tools_jar.py File build/android/gyp/find_sun_tools_jar.py (right): https://codereview.chromium.org/1136573002/diff/60001/build/android/gyp/find_sun_tools_jar.py#newcode27 build/android/gyp/find_sun_tools_jar.py:27: rt_jar_finder = re.compile(r'\[Opened (.*)/jre/lib/rt.jar\]') On ...
5 years, 7 months ago (2015-05-18 20:50:23 UTC) #13
cjhopman
https://codereview.chromium.org/1136573002/diff/100001/build/android/gyp/find_sun_tools_jar.py File build/android/gyp/find_sun_tools_jar.py (right): https://codereview.chromium.org/1136573002/diff/100001/build/android/gyp/find_sun_tools_jar.py#newcode42 build/android/gyp/find_sun_tools_jar.py:42: ["java", "-verbose", "-version"], print_stderr=False, print_stdout=False) print_stdout=False is the default. ...
5 years, 7 months ago (2015-05-20 02:21:29 UTC) #14
raywilliams_chromium
https://codereview.chromium.org/1136573002/diff/100001/build/android/gyp/find_sun_tools_jar.py File build/android/gyp/find_sun_tools_jar.py (right): https://codereview.chromium.org/1136573002/diff/100001/build/android/gyp/find_sun_tools_jar.py#newcode42 build/android/gyp/find_sun_tools_jar.py:42: ["java", "-verbose", "-version"], print_stderr=False, print_stdout=False) On 2015/05/20 02:21:29, cjhopman ...
5 years, 7 months ago (2015-05-20 21:31:55 UTC) #15
cjhopman
https://codereview.chromium.org/1136573002/diff/100001/build/config/android/rules.gni File build/config/android/rules.gni (right): https://codereview.chromium.org/1136573002/diff/100001/build/config/android/rules.gni#newcode735 build/config/android/rules.gni:735: # enable_errorprone: If true, enables the errorprone compiler. On ...
5 years, 7 months ago (2015-05-21 22:52:25 UTC) #16
raywilliams_chromium
https://codereview.chromium.org/1136573002/diff/100001/build/config/android/rules.gni File build/config/android/rules.gni (right): https://codereview.chromium.org/1136573002/diff/100001/build/config/android/rules.gni#newcode735 build/config/android/rules.gni:735: # enable_errorprone: If true, enables the errorprone compiler. On ...
5 years, 7 months ago (2015-05-22 17:09:55 UTC) #17
raywilliams_chromium
https://codereview.chromium.org/1136573002/diff/100001/build/config/android/rules.gni File build/config/android/rules.gni (right): https://codereview.chromium.org/1136573002/diff/100001/build/config/android/rules.gni#newcode735 build/config/android/rules.gni:735: # enable_errorprone: If true, enables the errorprone compiler. On ...
5 years, 7 months ago (2015-05-26 15:12:46 UTC) #18
cjhopman
lgtm https://codereview.chromium.org/1136573002/diff/160001/build/config/android/config.gni File build/config/android/config.gni (right): https://codereview.chromium.org/1136573002/diff/160001/build/config/android/config.gni#newcode46 build/config/android/config.gni:46: use_errorprone_java_compiler = false Add a comment above this. ...
5 years, 7 months ago (2015-05-26 22:05:32 UTC) #19
raywilliams_chromium
Thanks for the review :) https://codereview.chromium.org/1136573002/diff/160001/build/config/android/config.gni File build/config/android/config.gni (right): https://codereview.chromium.org/1136573002/diff/160001/build/config/android/config.gni#newcode46 build/config/android/config.gni:46: use_errorprone_java_compiler = false On ...
5 years, 7 months ago (2015-05-26 22:37:23 UTC) #20
jbudorick
https://codereview.chromium.org/1136573002/diff/200001/build/android/gyp/find_sun_tools_jar.py File build/android/gyp/find_sun_tools_jar.py (right): https://codereview.chromium.org/1136573002/diff/200001/build/android/gyp/find_sun_tools_jar.py#newcode24 build/android/gyp/find_sun_tools_jar.py:24: 'action\'s first output.') nit: indent this line to where ...
5 years, 6 months ago (2015-05-28 15:38:00 UTC) #21
raywilliams_chromium
https://codereview.chromium.org/1136573002/diff/200001/build/android/gyp/find_sun_tools_jar.py File build/android/gyp/find_sun_tools_jar.py (right): https://codereview.chromium.org/1136573002/diff/200001/build/android/gyp/find_sun_tools_jar.py#newcode24 build/android/gyp/find_sun_tools_jar.py:24: 'action\'s first output.') On 2015/05/28 15:38:00, jbudorick wrote: > ...
5 years, 6 months ago (2015-05-28 17:59:11 UTC) #22
jbudorick
https://codereview.chromium.org/1136573002/diff/220001/build/android/gyp/find_sun_tools_jar.py File build/android/gyp/find_sun_tools_jar.py (right): https://codereview.chromium.org/1136573002/diff/220001/build/android/gyp/find_sun_tools_jar.py#newcode46 build/android/gyp/find_sun_tools_jar.py:46: match = re.match(RT_JAR_FINDER, ln) nit: match = RT_JAR_FINDER.match(ln) https://codereview.chromium.org/1136573002/diff/220001/third_party/errorprone/errorprone.gyp ...
5 years, 6 months ago (2015-06-01 22:28:43 UTC) #23
raywilliams_chromium
https://codereview.chromium.org/1136573002/diff/220001/build/android/gyp/find_sun_tools_jar.py File build/android/gyp/find_sun_tools_jar.py (right): https://codereview.chromium.org/1136573002/diff/220001/build/android/gyp/find_sun_tools_jar.py#newcode46 build/android/gyp/find_sun_tools_jar.py:46: match = re.match(RT_JAR_FINDER, ln) On 2015/06/01 22:28:42, jbudorick wrote: ...
5 years, 6 months ago (2015-06-03 21:53:18 UTC) #24
jbudorick
https://codereview.chromium.org/1136573002/diff/240001/build/java_apk.gypi File build/java_apk.gypi (right): https://codereview.chromium.org/1136573002/diff/240001/build/java_apk.gypi#newcode211 build/java_apk.gypi:211: 'enable_errorprone%': '1', Should be '0'
5 years, 6 months ago (2015-06-04 14:00:14 UTC) #25
raywilliams_chromium
https://codereview.chromium.org/1136573002/diff/240001/build/java_apk.gypi File build/java_apk.gypi (right): https://codereview.chromium.org/1136573002/diff/240001/build/java_apk.gypi#newcode211 build/java_apk.gypi:211: 'enable_errorprone%': '1', On 2015/06/04 14:00:14, jbudorick wrote: > Should ...
5 years, 6 months ago (2015-06-04 16:32:10 UTC) #26
raywilliams_chromium
5 years, 6 months ago (2015-06-04 20:45:32 UTC) #27
jbudorick
lgtm
5 years, 6 months ago (2015-06-08 18:08:23 UTC) #28
raywilliams_chromium
5 years, 6 months ago (2015-06-09 17:09:25 UTC) #30
cpu_(ooo_6.6-7.5)
1- can you add more context on the bug what this does, why we needed ...
5 years, 6 months ago (2015-06-12 21:30:28 UTC) #31
raywilliams_chromium
On 2015/06/12 21:30:28, cpu wrote: > 1- can you add more context on the bug ...
5 years, 6 months ago (2015-06-15 17:28:22 UTC) #32
raywilliams_chromium
On 2015/06/15 17:28:22, raywilliams1 wrote: > On 2015/06/12 21:30:28, cpu wrote: > > 1- can ...
5 years, 6 months ago (2015-06-15 17:33:50 UTC) #35
raywilliams_chromium
On 2015/06/15 17:33:50, raywilliams1 wrote: > On 2015/06/15 17:28:22, raywilliams1 wrote: > > On 2015/06/12 ...
5 years, 6 months ago (2015-06-15 17:37:46 UTC) #36
jochen (gone - plz use gerrit)
On 2015/06/15 at 17:37:46, raywilliams wrote: > On 2015/06/15 17:33:50, raywilliams1 wrote: > > On ...
5 years, 6 months ago (2015-06-17 08:04:29 UTC) #37
cjhopman
On 2015/06/17 08:04:29, jochen wrote: > On 2015/06/15 at 17:37:46, raywilliams wrote: > > On ...
5 years, 6 months ago (2015-06-17 20:19:57 UTC) #38
cjhopman
On 2015/06/17 20:19:57, cjhopman wrote: > On 2015/06/17 08:04:29, jochen wrote: > > On 2015/06/15 ...
5 years, 6 months ago (2015-06-17 20:20:15 UTC) #39
cpu_(ooo_6.6-7.5)
I had forgotten. lgtm
5 years, 6 months ago (2015-06-19 21:38:48 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1136573002/300001
5 years, 6 months ago (2015-06-19 22:21:28 UTC) #43
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/83574)
5 years, 6 months ago (2015-06-19 22:34:43 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1136573002/300001
5 years, 6 months ago (2015-06-22 15:15:42 UTC) #47
commit-bot: I haz the power
Committed patchset #16 (id:300001)
5 years, 6 months ago (2015-06-22 16:17:45 UTC) #48
commit-bot: I haz the power
Patchset 16 (id:??) landed as https://crrev.com/6ffb1179d6adf08edd64848b45b7415b6b6de43d Cr-Commit-Position: refs/heads/master@{#335509}
5 years, 6 months ago (2015-06-22 16:18:31 UTC) #49
Primiano Tucci (use gerrit)
When adding a new DEPS plz remember to add also the project to .gitignore (as ...
5 years, 6 months ago (2015-06-25 12:53:35 UTC) #50
Primiano Tucci (use gerrit)
5 years, 6 months ago (2015-06-25 12:53:40 UTC) #51
Message was sent while issue was closed.
When adding a new DEPS plz remember to add also the project to .gitignore (as
indicated in the comment on top of DEPS *) or you end up causing dev's checkouts
to be in a stale state.

There is no need to do for this one, this is now being addressed in
crrev.com/1209933002

* "When adding a new dependency, please update the top-level .gitignore file to
list the dependency's destination directory.	   9 # to list the dependency's
destination directory."

Powered by Google App Engine
This is Rietveld 408576698