Reject names that cannot be represented in the dex format.

This change is a little more restrictive in method names than what the
spec says. However, art doesn't allow names of the form '<name>'
unless it is eactly '<init>' or '<clinit>'. Therefore, we should
explicitly reject those names instead of generating dex files that
cannot verify.

R=sgjesse@google.com

Bug: 62450011
Change-Id: I2fc8d612bdd1fea0f637240a63ddfc4901c45f72
9 files changed
tree: 3f007d6355b9552018b53cb7d703684c4a689bf3
  1. buildSrc/
  2. scripts/
  3. src/
  4. tests/
  5. third_party/
  6. tools/
  7. .gitignore
  8. AUTHORS
  9. build.gradle
  10. codereview.settings
  11. CONTRIBUTING.md
  12. copyAdditionalJctfCommonFiles.gradle
  13. LICENSE
  14. README.md
README.md

The R8 repo contains two tools.

  1. D8 is a dexer that converts java byte code to dex code.

  2. R8 is a java program shrinking and minification tool.