OSDN Git Service

ART: Fix misleading error message in method verifier.
authorVladimir Marko <vmarko@google.com>
Fri, 25 Sep 2015 14:57:36 +0000 (15:57 +0100)
committerVladimir Marko <vmarko@google.com>
Fri, 25 Sep 2015 14:57:36 +0000 (15:57 +0100)
Change-Id: I4805de0060b74168fa36e077a6a7ea59e9d72d46

runtime/verifier/method_verifier.cc

index 9938e90..317a144 100644 (file)
@@ -1337,7 +1337,7 @@ bool MethodVerifier::CheckSwitchTargets(uint32_t cur_offset) {
           static_cast<int32_t>(switch_insns[keys_offset + targ * 2]) |
           static_cast<int32_t>(switch_insns[keys_offset + targ * 2 + 1] << 16);
       if (key <= last_key) {
-        Fail(VERIFY_ERROR_BAD_CLASS_HARD) << "invalid packed switch: last key=" << last_key
+        Fail(VERIFY_ERROR_BAD_CLASS_HARD) << "invalid sparse switch: last key=" << last_key
                                           << ", this=" << key;
         return false;
       }