From: Dmitrijs Ledkovs <dmitrij.ledkov@ubuntu.com>
To: java-patches@gcc.gnu.org
Cc: gcc-patches@gcc.gnu.org
Subject: [java] [mingw] Fix (typos) compile errors.
Date: Thu, 12 Aug 2010 00:25:00 -0000 [thread overview]
Message-ID: <877hjwelec.fsf@ubuntu.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 849 bytes --]
fix natVMSecureRandomWin32.cc for *-*-mingw32 targets.
When compiling build/host=i686-gnu-linux, target=i686-w64-mingw32. Libjava fails like so:
gnu/java/security/jce/prng/natVMSecureRandom.cc: In static member function 'static jint gnu::java::security::jce::prng::VMSecureRandom::natGenerateSeed(jbyteArray, jint, jint)':
gnu/java/security/jce/prng/natVMSecureRandom.cc:29:15: error: expected type-specifier
gnu/java/security/jce/prng/natVMSecureRandom.cc:29:15: error: expected ';'
gnu/java/security/jce/prng/natVMSecureRandom.cc: At global scope:
gnu/java/security/jce/prng/natVMSecureRandom.cc:26:1: warning: unused parameter 'byte_array' [-Wunused-parameter]
gnu/java/security/jce/prng/natVMSecureRandom.cc:26:1: warning: unused parameter 'offset' [-Wunused-parameter]
make[4]: *** [gnu/java/security/jce/prng/natVMSecureRandom.lo] Error 1
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: java-typos.patch --]
[-- Type: text/x-diff, Size: 1436 bytes --]
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
diff --git a/libjava/gnu/java/security/jce/prng/natVMSecureRandomWin32.cc b/libjava/gnu/java/security/jce/prng/natVMSecureRandomWin32.cc
old mode 100755
new mode 100644
index 1a9d0d3..f557315
--- a/libjava/gnu/java/security/jce/prng/natVMSecureRandomWin32.cc
+++ b/libjava/gnu/java/security/jce/prng/natVMSecureRandomWin32.cc
@@ -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
next reply other threads:[~2010-08-12 0:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-12 0:25 Dmitrijs Ledkovs [this message]
2010-08-12 8:59 ` Andrew Haley
2010-08-12 16:22 ` Tom Tromey
2010-08-12 17:20 ` Dmitrijs Ledkovs
2010-08-12 18:22 ` Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877hjwelec.fsf@ubuntu.com \
--to=dmitrij.ledkov@ubuntu.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=java-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).