From 1ff3dbf2ad084c42ad0f6eea42f616177ed844e1 Mon Sep 17 00:00:00 2001 From: Vadim Chelyshov Date: Wed, 20 Apr 2022 12:22:59 +0300 Subject: [PATCH] fix: correction to ClassTooLargeException message --- compiler/src/dotty/tools/backend/jvm/GenBCode.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/dotty/tools/backend/jvm/GenBCode.scala b/compiler/src/dotty/tools/backend/jvm/GenBCode.scala index a10a146e798b..8a525b2f8091 100644 --- a/compiler/src/dotty/tools/backend/jvm/GenBCode.scala +++ b/compiler/src/dotty/tools/backend/jvm/GenBCode.scala @@ -581,7 +581,7 @@ class GenBCodePipeline(val int: DottyBackendInterface, val primitives: DottyPrim report.error(msg) case e: ClassTooLargeException => val msg = - s"Class '${e.getClassName.replaceAll("/", ".")}' is too large. Constant pool size: ${e.getConstantPoolCount}. Limit is 64KB" + s"Class '${e.getClassName.replaceAll("/", ".")}' is too large. Constant pool size: ${e.getConstantPoolCount}. Limit is 64K entries" report.error(msg) }