> Two changes to the toString output for annotations to give better source > fidelity: > > 1) For enum constants, call their name method rather than their toString > method. An enum class can override the toString method to print something > other than the name. > > 2) Switch from using binary names (names with "$" for nested types) to > canonical names (names with "." with nested types) > > Various existing regression tests are updated to accommodate the changes. > > Please also review the CSR: > https://bugs.openjdk.java.net/browse/JDK-8281568
Joe Darcy has updated the pull request incrementally with one additional commit since the last revision: Respond to review feedback. ------------- Changes: - all: https://git.openjdk.java.net/jdk/pull/7418/files - new: https://git.openjdk.java.net/jdk/pull/7418/files/fdbfbfea..2989ff11 Webrevs: - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=7418&range=01 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=7418&range=00-01 Stats: 13 lines in 1 file changed: 0 ins; 9 del; 4 mod Patch: https://git.openjdk.java.net/jdk/pull/7418.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/7418/head:pull/7418 PR: https://git.openjdk.java.net/jdk/pull/7418