OSDN Git Service

Default methods should not be found by getDeclaredMethod
authorAlex Light <allight@google.com>
Mon, 8 Feb 2016 18:30:04 +0000 (10:30 -0800)
committerAlex Light <allight@google.com>
Mon, 8 Feb 2016 18:34:36 +0000 (10:34 -0800)
commit64fdc804f6b4d8a6f7d86bd9672e3bb1cde7056f
tree4cb67ba411e3845054347745657bdc06ca8472ab
parent27ec302da670ffddaf1278b5b7155b7742aa37fd
Default methods should not be found by getDeclaredMethod

We were incorrectly returning default methods from getDeclaredMethod
calls on an implementing class that uses the default implementation.

Bug: 27060609

Change-Id: I2e07023a11585e5f7cd92c4c0e1263f54aea1f5f
runtime/native/java_lang_Class.cc
test/048-reflect-v8/expected.txt
test/048-reflect-v8/src/DefaultDeclared.java [new file with mode: 0644]
test/048-reflect-v8/src/Main.java