Commit cf229aba authored by Ryan Landay's avatar Ryan Landay Committed by Commit Bot

Add extra case for jmake workaround

This is to fix builds that are running into this error:

java.lang.ArrayIndexOutOfBoundsException: 2
	at org.pantsbuild.jmake.ClassInfo.getDeclaredMethodPos(ClassInfo.java...
	at org.pantsbuild.jmake.RefClassFinder.findConcreteSubclassesNotOverr...
	at org.pantsbuild.jmake.CompatibilityChecker.checkMethodModifiers(Com...
	at org.pantsbuild.jmake.CompatibilityChecker.checkMethodsAndConstruct...
	at org.pantsbuild.jmake.CompatibilityChecker.compareClassVersions(Com...
	at org.pantsbuild.jmake.PCDManager.checkUpdatedClasses(PCDManager.jav...
	at org.pantsbuild.jmake.PCDManager.run(PCDManager.java:340)
	at org.pantsbuild.jmake.Main.mainProgrammatic(Main.java:347)
	at org.pantsbuild.jmake.Main.mainExternal(Main.java:409)
	at org.pantsbuild.jmake.Main.main(Main.java:681)

jmake: internal Java exception: java.lang.ArrayIndexOutOfBoundsException: 2
jmake: Consult the following stack trace for more info:
Change-Id: I7045c41e5208c1bc87aaee303e4be2f7c07768e5
Reviewed-on: https://chromium-review.googlesource.com/1114005Reviewed-by: default avataragrieve <agrieve@chromium.org>
Commit-Queue: Ryan Landay <rlanday@chromium.org>
Cr-Commit-Position: refs/heads/master@{#570133}
parent fdf7ef79
......@@ -367,7 +367,8 @@ def _OnStaleMd5(changes, options, javac_cmd, java_files, classpath_inputs,
attempt_build()
except build_utils.CalledProcessError as e:
# Work-around for a bug in jmake (http://crbug.com/551449).
if 'project database corrupted' not in e.output:
if ('project database corrupted' not in e.output
and 'jmake: internal Java exception' not in e.output):
raise
print ('Applying work-around for jmake project database corrupted '
'(http://crbug.com/551449).')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment