Skip to content


8277606: String(String) constructor could copy hashIsZero
Browse files Browse the repository at this point in the history
Reviewed-by: redestad, rriggs
  • Loading branch information
JarvisCraft authored and Roger Riggs committed Nov 30, 2021
1 parent 5a4a9bb commit e30e676
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/java.base/share/classes/java/lang/
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ public String(String original) {
this.value = original.value;
this.coder = original.coder;
this.hash = original.hash;
this.hashIsZero = original.hashIsZero;

Expand Down

1 comment on commit e30e676

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.