mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8176188: jdk/internal/misc/JavaLangAccess/NewUnsafeString.java failing since 9-b93
Reviewed-by: psandoz, sherman
This commit is contained in:
parent
6351f58092
commit
7759531e5c
9 changed files with 5 additions and 138 deletions
|
@ -645,19 +645,6 @@ public final class String
|
|||
this(builder, null);
|
||||
}
|
||||
|
||||
/*
|
||||
* Package private constructor which shares value array for speed.
|
||||
* this constructor is always expected to be called with share==true.
|
||||
* a separate constructor is needed because we already have a public
|
||||
* String(char[]) constructor that makes a copy of the given char[].
|
||||
*/
|
||||
// TBD: this is kept for package internal use (Thread/System),
|
||||
// should be removed if they all have a byte[] version
|
||||
String(char[] val, boolean share) {
|
||||
// assert share : "unshared not supported";
|
||||
this(val, 0, val.length, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the length of this string.
|
||||
* The length is equal to the number of <a href="Character.html#unicode">Unicode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue