diff --git a/src/java.base/windows/native/libnet/NTLMAuthSequence.c b/src/java.base/windows/native/libnet/NTLMAuthSequence.c index 0da2675b886..214df84ccb8 100644 --- a/src/java.base/windows/native/libnet/NTLMAuthSequence.c +++ b/src/java.base/windows/native/libnet/NTLMAuthSequence.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002, 2025, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2002, 2026, 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 @@ -231,7 +231,7 @@ JNIEXPORT jbyteArray JNICALL Java_sun_net_www_protocol_http_ntlm_NTLMAuthSequenc if (ss < 0) { SetLastError(ss); - JNU_ThrowIOExceptionWithLastError(env, "InitializeSecurityContext"); + JNU_ThrowIOExceptionWithMessageAndLastError(env, "InitializeSecurityContext"); endSequence (pCred, pCtx, env, status); return 0; } @@ -241,7 +241,7 @@ JNIEXPORT jbyteArray JNICALL Java_sun_net_www_protocol_http_ntlm_NTLMAuthSequenc if (ss < 0) { SetLastError(ss); - JNU_ThrowIOExceptionWithLastError(env, "CompleteAuthToken"); + JNU_ThrowIOExceptionWithMessageAndLastError(env, "CompleteAuthToken"); endSequence (pCred, pCtx, env, status); return 0; }