8311122: Fix typos in java.base

Reviewed-by: darcy, naoto, mchung, iris, mli, mullan
This commit is contained in:
Pavel Rappo 2023-07-04 19:03:09 +00:00
parent 607ddaa0e6
commit 7b3c2dc5f4
13 changed files with 23 additions and 23 deletions

View file

@ -383,7 +383,7 @@ public enum ClassFileFormatVersion {
public static ClassFileFormatVersion fromMajor(int major) {
if (major < 45 // RELEASE_0.major()
|| major > latest().major()) {
throw new IllegalArgumentException("Out of range major class file vesion "
throw new IllegalArgumentException("Out of range major class file version "
+ major);
}
// RELEASE_0 and RELEASE_1 both have a major version of 45;

View file

@ -1268,7 +1268,7 @@ public class Proxy implements java.io.Serializable {
// the method's declaring class is left unvisited.
continue;
}
// visit all superinteraces of one proxy interface to find if
// visit all superinterfaces of one proxy interface to find if
// this proxy interface inherits the method directly or indirectly
visited.add(c);
for (Class<?> superIntf : c.getInterfaces()) {