mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8284444: Sting typo
Reviewed-by: kcr, aivanov, mgronlun
This commit is contained in:
parent
ec73c61d8f
commit
5bafcfdc17
5 changed files with 10 additions and 10 deletions
|
@ -131,7 +131,7 @@ public:
|
||||||
* Shared Strings decompressor. This decompressor reconstruct the class
|
* Shared Strings decompressor. This decompressor reconstruct the class
|
||||||
* constant pool UTF_U entries by retrieving strings stored in jimage strings table.
|
* 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,
|
* 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"
|
* 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
|
* stored in string table. offsets to the 2 strings are compressed and stored in the
|
||||||
* constantpool entry.
|
* constantpool entry.
|
||||||
|
|
|
@ -60,7 +60,7 @@ message.output-location=Installer (.exe) saved to: {0}
|
||||||
message.tool-version=Detected [{0}] version [{1}].
|
message.tool-version=Detected [{0}] version [{1}].
|
||||||
message.creating-association-with-null-extension=Creating association with null extension.
|
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.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.use-wix36-features=WiX {0} detected. Enabling advanced cleanup action.
|
||||||
message.product-code=MSI ProductCode: {0}.
|
message.product-code=MSI ProductCode: {0}.
|
||||||
message.upgrade-code=MSI UpgradeCode: {0}.
|
message.upgrade-code=MSI UpgradeCode: {0}.
|
||||||
|
|
|
@ -399,7 +399,7 @@ public class InvokeTest extends TestScaffold {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Then find toSting
|
// Then find toString
|
||||||
List meths = objectMirror.methods();
|
List meths = objectMirror.methods();
|
||||||
iter = meths.iterator();
|
iter = meths.iterator();
|
||||||
while (iter.hasNext()) {
|
while (iter.hasNext()) {
|
||||||
|
|
|
@ -487,7 +487,7 @@ public class ExplicitCastArgumentsTest {
|
||||||
Object[] parList = Helper.randomArgs(mTypeNew.parameterList());
|
Object[] parList = Helper.randomArgs(mTypeNew.parameterList());
|
||||||
for (int i = 0; i < parList.length; i++) {
|
for (int i = 0; i < parList.length; i++) {
|
||||||
if (parList[i] instanceof String) {
|
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);
|
target.invokeWithArguments(parList);
|
||||||
|
|
|
@ -64,12 +64,12 @@ public class TestToString {
|
||||||
RecordedEvent e = events.get(0);
|
RecordedEvent e = events.get(0);
|
||||||
String toString = e.toString();
|
String toString = e.toString();
|
||||||
System.out.println(toString);
|
System.out.println(toString);
|
||||||
Asserts.assertTrue(toString.contains("hello, world"), "Missing String field 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#toSting()");
|
Asserts.assertTrue(toString.contains("4711"), "Missing integer fields value in RecordedEvent#toString()");
|
||||||
Asserts.assertTrue(toString.contains("313"), "Missing double value in RecordedEvent#toSting()");
|
Asserts.assertTrue(toString.contains("313"), "Missing double value in RecordedEvent#toString()");
|
||||||
Asserts.assertTrue(toString.contains("HashMap"), "Missing class value in RecordedEvent#toSting()");
|
Asserts.assertTrue(toString.contains("HashMap"), "Missing class value in RecordedEvent#toString()");
|
||||||
Asserts.assertTrue(toString.contains("1234567890"), "Missing long value in RecordedEvent#toSting()");
|
Asserts.assertTrue(toString.contains("1234567890"), "Missing long value in RecordedEvent#toString()");
|
||||||
Asserts.assertTrue(toString.contains("&"), "Missing char value in RecordedEvent#toSting()");
|
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("123"), "Missing byte value in RecordedEvent#toString()");
|
||||||
Asserts.assertTrue(toString.contains("64"), "Missing short 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()");
|
Asserts.assertTrue(toString.contains("false"), "Missing boolean value in RecordedEvent#toString()");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue