Skip to content

Commit

Permalink
JACOBIN-438 Laying out some breadcrumbs in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
platypusguy committed Jan 12, 2025
1 parent a20baac commit 9c942ac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/classloader/classloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ func LoadFromLoaderChannel(LoaderChannel <-chan string) {
}

// LoadClassFromNameOnly loads a class from name in java/lang/Class format
// It also loads the superclass of any class it loads.
// It also loads the superclasses of any class it loads.
func LoadClassFromNameOnly(name string) error {
var err error
className := name
Expand Down Expand Up @@ -330,6 +330,9 @@ loadAclass:
className = *stringPool.GetStringPointer(superclassIndex)
goto loadAclass
}

// at this point, we know the class and all its superclasses have been loaded. So,
// we can add all the superclass methods to the present class.
return err
}

Expand Down

0 comments on commit 9c942ac

Please sign in to comment.