summaryrefslogtreecommitdiff
path: root/include/ScopedJavaUnicodeString.h
diff options
context:
space:
mode:
authorTobias Thierer <tobiast@google.com>2017-06-06 15:54:44 +0100
committerTobias Thierer <tobiast@google.com>2017-06-06 21:31:30 +0100
commit5e867426e6911928869120e7cc2a6ea381435e0f (patch)
tree9523c398152b7cbfaee17b4a8b1e418358fa8014 /include/ScopedJavaUnicodeString.h
parentf88736912e259a9815653048e70e47afad3861ca (diff)
Don't be opinionated about whether anonymous classes can be static.
ReflectionTest was asserting that the anonymous class from: private static final Object staticAnonymous = new Object() {}; is itself static, which matches the behavior of OpenJDK 8 (currently used by default in the Android toolchain). OpenJDK 9b08 onwards adopted the behavior of not considering the anonymous class static. Only the new behavior is consistent with the specification ("An anonymous class is [...] never static") in JLS 15.9.5. This CL makes the test accept either behavior. Bug: 62290080 Test: Treehugger Change-Id: I05b14290867bf977e5ebbf54bfd9c3f7397947c3
Diffstat (limited to 'include/ScopedJavaUnicodeString.h')
0 files changed, 0 insertions, 0 deletions