mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8200261: Regression with JVM anonymous class
Restore resolved anonymous class when creating a new constantpool because of overpass methods Reviewed-by: coleenp, lfoltan
This commit is contained in:
parent
094178fdba
commit
b89ae10df2
4 changed files with 197 additions and 1 deletions
|
@ -5424,6 +5424,8 @@ void ClassFileParser::fill_instance_klass(InstanceKlass* ik, bool changed_by_loa
|
|||
// has to be changed accordingly.
|
||||
ik->set_initial_method_idnum(ik->methods()->length());
|
||||
|
||||
ik->set_this_class_index(_this_class_index);
|
||||
|
||||
if (is_anonymous()) {
|
||||
// _this_class_index is a CONSTANT_Class entry that refers to this
|
||||
// anonymous class itself. If this class needs to refer to its own methods or
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue