OSDN Git Service

ART: Fix typo in ArtMethod::FindCatchBlock
authorAndreas Gampe <agampe@google.com>
Wed, 14 May 2014 04:42:05 +0000 (21:42 -0700)
committerAndreas Gampe <agampe@google.com>
Thu, 15 May 2014 00:33:52 +0000 (17:33 -0700)
commit72b3e430d880ef57eaa6a34a0822165994052202
treeb102b12d67e6cbc5cf0e6dc4e4ca147325264a43
parentd0916f36d27b643bca970f3645c38f44270c74ef
ART: Fix typo in ArtMethod::FindCatchBlock

The thrown exception is always resolved, as we have an instance of
it. What is potentially not resolved is the catch handler's exception
type.

The resolution failure will trigger a NoClassDefFoundError, which
should replace the original exception. For this, the API has to be
changed a little bit to tell callers that there was this change.

Change-Id: Id51d54a15c732ed175eb617b3b0331b89cbb2051
runtime/catch_block_stack_visitor.cc
runtime/interpreter/interpreter_common.h
runtime/mirror/art_method.cc
runtime/mirror/art_method.h
test/111-unresolvable-exception/build [new file with mode: 0644]
test/111-unresolvable-exception/expected.txt [new file with mode: 0644]
test/111-unresolvable-exception/info.txt [new file with mode: 0644]
test/111-unresolvable-exception/src/Main.java [new file with mode: 0644]
test/111-unresolvable-exception/src/TestException.java [new file with mode: 0644]