--- old/src/share/vm/classfile/defaultMethods.cpp 2016-09-28 23:17:50.803184786 -0400 +++ new/src/share/vm/classfile/defaultMethods.cpp 2016-09-28 23:17:48.687064967 -0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -914,7 +914,7 @@ BytecodeBuffer buffer; if (log_is_enabled(Debug, defaultmethods)) { - ResourceMark rm; + ResourceMark rm(THREAD); outputStream* logstream = Log(defaultmethods)::debug_stream(); logstream->print("for slot: "); slot->print_on(logstream); @@ -929,6 +929,7 @@ if (method->has_target()) { Method* selected = method->get_selected_target(); if (selected->method_holder()->is_interface()) { + assert(!selected->is_private(), "pushing private interface method as default"); defaults.push(selected); } } else if (method->throws_exception()) {