< prev index next >

src/hotspot/share/classfile/classFileParser.cpp

Print this page

        

@@ -4632,10 +4632,15 @@
                                                super_m->method_holder(),
                                                super_m->method_holder(),
                                                super_m->access_flags(), false))
             // this class can access super final method and therefore override
             ) {
+            // Propagate any existing exceptions that may have been thrown
+            if (HAS_PENDING_EXCEPTION) {
+              return;
+            }
+
             ResourceMark rm(THREAD);
             Exceptions::fthrow(
               THREAD_AND_LOCATION,
               vmSymbols::java_lang_VerifyError(),
               "class %s overrides final method %s.%s%s",
< prev index next >