Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8260401: StackOverflowError on open WindowsPreferences
Reviewed-by: bpb
  • Loading branch information
jaikiran committed Feb 13, 2021
1 parent 735757f commit 849390a
Showing 1 changed file with 3 additions and 3 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -432,7 +432,7 @@ private WindowsPreferences(WindowsPreferences parent, String name) {
if (result[ERROR_CODE] != ERROR_SUCCESS) {
logger().warning("Could not create windows registry node " +
byteArrayToString(windowsAbsolutePath()) +
" at root 0x" + Long.toHexString(rootNativeHandle()) +
" at root 0x" + Long.toHexString(parentNativeHandle) +
". Windows RegCreateKeyEx(...) returned error code " +
result[ERROR_CODE] + ".");
isBackingStoreAvailable = false;
Expand All @@ -458,7 +458,7 @@ private WindowsPreferences(long rootNativeHandle, byte[] rootDirectory) {
if (result[ERROR_CODE] != ERROR_SUCCESS) {
logger().warning("Could not open/create prefs root node " +
byteArrayToString(windowsAbsolutePath()) +
" at root 0x" + Long.toHexString(rootNativeHandle()) +
" at root 0x" + Long.toHexString(rootNativeHandle) +
". Windows RegCreateKeyEx(...) returned error code " +
result[ERROR_CODE] + ".");
isBackingStoreAvailable = false;
Expand Down

1 comment on commit 849390a

@openjdk-notifier
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.