From 5ddf060889cd985f2c9373ebd5941bc942bb5cfc Mon Sep 17 00:00:00 2001
From: Dmitrijs Ledkovs <dmitrij.ledkov@ubuntu.com>
Date: Sun, 25 Jul 2010 17:01:49 +0100
Subject: [PATCH 1/2] 2010-07-25 Dmitrijs Ledkovs <dmitrij.ledkov@ubuntu.com>
* gnu/java/security/jce/prng/natVMSecureRandomWin32.cc: Fix compile
errors.
---
.../security/jce/prng/natVMSecureRandomWin32.cc | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
mode change 100755 => 100644 libjava/gnu/java/security/jce/prng/natVMSecureRandomWin32.cc
old mode 100755
new mode 100644
@@ -26,8 +26,11 @@ jint
gnu::java::security::jce::prng::VMSecureRandom::natGenerateSeed(jbyteArray byte_array, jint offset, jint length)
{
if (length != 0)
- throw new java::lang::UnsupportedOperationException (
- JvNewStringLatin1 ("natGenerateSeed is not available for Win32 target."));
+ {
+ jstring oserr = JvNewStringLatin1 (strerror (errno));
+ throw new ::java::lang::UnsupportedOperationException
+ (JvNewStringLatin1 ("natGenerateSeed is not available for Win32 target.")->concat(oserr));
+ }
return 0;
}
--
1.7.0.4