8284444: Sting typo

Reviewed-by: kcr, aivanov, mgronlun
This commit is contained in:
Daniel Jeliński 2022-04-07 14:55:05 +00:00
parent ec73c61d8f
commit 5bafcfdc17
5 changed files with 10 additions and 10 deletions

View File

@ -131,7 +131,7 @@ public:
* Shared Strings decompressor. This decompressor reconstruct the class
* constant pool UTF_U entries by retrieving strings stored in jimage strings table.
* In addition, if the UTF_8 entry is a descriptor, the descriptor has to be rebuilt,
* all java type having been removed from the descriptor and added to the sting table.
* all java type having been removed from the descriptor and added to the string table.
* eg: "(Ljava/lang/String;I)V" ==> "(L;I)V" and "java/lang", "String"
* stored in string table. offsets to the 2 strings are compressed and stored in the
* constantpool entry.

View File

@ -60,7 +60,7 @@ message.output-location=Installer (.exe) saved to: {0}
message.tool-version=Detected [{0}] version [{1}].
message.creating-association-with-null-extension=Creating association with null extension.
message.wrong-tool-version=Detected [{0}] version {1} but version {2} is required.
message.version-string-too-many-components=Version sting may have up to 3 components - major.minor.build .
message.version-string-too-many-components=Version string may have up to 3 components - major.minor.build .
message.use-wix36-features=WiX {0} detected. Enabling advanced cleanup action.
message.product-code=MSI ProductCode: {0}.
message.upgrade-code=MSI UpgradeCode: {0}.

View File

@ -399,7 +399,7 @@ public class InvokeTest extends TestScaffold {
return null;
}
// Then find toSting
// Then find toString
List meths = objectMirror.methods();
iter = meths.iterator();
while (iter.hasNext()) {

View File

@ -487,7 +487,7 @@ public class ExplicitCastArgumentsTest {
Object[] parList = Helper.randomArgs(mTypeNew.parameterList());
for (int i = 0; i < parList.length; i++) {
if (parList[i] instanceof String) {
parList[i] = null; //getting rid of Stings produced by randomArgs
parList[i] = null; //getting rid of Strings produced by randomArgs
}
}
target.invokeWithArguments(parList);

View File

@ -64,12 +64,12 @@ public class TestToString {
RecordedEvent e = events.get(0);
String toString = e.toString();
System.out.println(toString);
Asserts.assertTrue(toString.contains("hello, world"), "Missing String field value in RecordedEvent#toSting()");
Asserts.assertTrue(toString.contains("4711"), "Missing integer fields value in RecordedEvent#toSting()");
Asserts.assertTrue(toString.contains("313"), "Missing double value in RecordedEvent#toSting()");
Asserts.assertTrue(toString.contains("HashMap"), "Missing class value in RecordedEvent#toSting()");
Asserts.assertTrue(toString.contains("1234567890"), "Missing long value in RecordedEvent#toSting()");
Asserts.assertTrue(toString.contains("&"), "Missing char value in RecordedEvent#toSting()");
Asserts.assertTrue(toString.contains("hello, world"), "Missing String field value in RecordedEvent#toString()");
Asserts.assertTrue(toString.contains("4711"), "Missing integer fields value in RecordedEvent#toString()");
Asserts.assertTrue(toString.contains("313"), "Missing double value in RecordedEvent#toString()");
Asserts.assertTrue(toString.contains("HashMap"), "Missing class value in RecordedEvent#toString()");
Asserts.assertTrue(toString.contains("1234567890"), "Missing long value in RecordedEvent#toString()");
Asserts.assertTrue(toString.contains("&"), "Missing char value in RecordedEvent#toString()");
Asserts.assertTrue(toString.contains("123"), "Missing byte value in RecordedEvent#toString()");
Asserts.assertTrue(toString.contains("64"), "Missing short value in RecordedEvent#toString()");
Asserts.assertTrue(toString.contains("false"), "Missing boolean value in RecordedEvent#toString()");