Fix lint to run under java 9.

Under java 9, the java invocation in the lint script requires
the additional argument
   --add-modules java.xml.bind
because lint depends on classes from the package
javax.xml.bind.annotation which is part of the (deprecated)
module java.xml.bind.

This CL updates the Linux/Unix version of the lint script to
pass the new argument when running java 9. The Windows version
of the script, which is never used during Android platform
development and may be dead code, is not changed. Therefore,
after this CL, the Linux version of the script (lint) will
work up to java 9, whereas the Windows version (lint.bat)
continues to only work up to java 8.

If the script is updated from upstream (which last happened
several years ago) in future, and if the lint tool at that
time still relies on java.xml.bind, then this patch would
need to be kept/re-applied at that time.

Bug: 69947523
Test: Checked that the linter succeeds on Linux under both
      OpenJDK 8 and 9. The way I tested this was by
      running "repo upload" for a dummy CL in
      vendor/google/apps/SetupWizard but aborting the upload
      after the linter run had completed.

Change-Id: Icda014e00eaf8e3e6740d2ab97eac746684c525e
1 file changed
tree: a0b179fee9cce861b12a2af957070735dbb2efef
  1. adt/
  2. notices/
  3. repository/
  4. tools/
  5. OWNERS
  6. update_jars.sh