Skip to content

Commit

Permalink
JACOBIN-575 Updated instantiate.go to use new MethodList table
Browse files Browse the repository at this point in the history
  • Loading branch information
platypusguy committed Jan 21, 2025
1 parent 4bf883b commit c1c7920
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/config/buildno.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

package config

var BuildNo = 3425
var BuildNo = 3426
4 changes: 2 additions & 2 deletions src/jvm/instantiate.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func InstantiateClass(classname string, frameStack *list.List) (any, error) {
}
} // loop through the fields if any
goto runInitializer
} // end of handling fields for objects w/ no superclasses
} // end of handling fields for objects w/ no superclasses other than java/lang/Object

// in the case of superclasses, we start at the topmost superclass
// and work our way down to the present class, adding fields to FieldTable.
Expand Down Expand Up @@ -177,8 +177,8 @@ runInitializer:
methName := k.Data.CP.Utf8Refs[meth.Name]
methType := k.Data.CP.Utf8Refs[meth.Desc]
FQN := classname + "." + methName + methType
k.Data.MethodList = append(k.Data.MethodList, FQN)
classloader.GmtAddEntry(FQN, classloader.GmtEntry{MethData: &meth, MType: 'J'})
k.Data.MethodList[methName+methType] = FQN
}

// // go through the superclasses and add their methods to the class's MethodList
Expand Down

0 comments on commit c1c7920

Please sign in to comment.