[NEW BUG] Fix "moduel" typo in ModuleInfo
Hi, I just noticed this trivial typo while looking through the module related code. I'd be happy if this patch is accepted. Cheers, Christoph === PATCH === diff --git a/src/java.base/share/classes/jdk/internal/module/ModuleInfo.java b/src/java.base/share/classes/jdk/internal/module/ModuleInfo.java --- a/src/java.base/share/classes/jdk/internal/module/ModuleInfo.java +++ b/src/java.base/share/classes/jdk/internal/module/ModuleInfo.java @@ -233,7 +233,7 @@ Set<String> allPackages = null; String mainClass = null; ModuleTarget moduleTarget = null; - ModuleHashes moduelHashes = null; + ModuleHashes moduleHashes = null; ModuleResolution moduleResolution = null; for (int i = 0; i < attributes_count ; i++) { @@ -267,7 +267,7 @@ case MODULE_HASHES : if (parseHashes) { - moduelHashes = readModuleHashesAttribute(in, cpool); + moduleHashes = readModuleHashesAttribute(in, cpool); } else { in.skipBytes(length); } @@ -331,7 +331,7 @@ ModuleDescriptor descriptor = builder.build(); return new Attributes(descriptor, moduleTarget, - moduelHashes, + moduleHashes, moduleResolution); }
On 05/08/2018 09:28, Christoph Dreis wrote:
Hi,
I just noticed this trivial typo while looking through the module related code.
I'd be happy if this patch is accepted.
Thanks, it should be renamed. I've reviewed and sponsored the change so it's in jdk/jdk now. -Alan
participants (2)
-
Alan Bateman
-
Christoph Dreis