This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
init_properties()
- From: Mark Wielaard <mark at klomp dot org>
- To: java at gcc dot gnu dot org
- Date: Fri, 16 Nov 2001 20:22:28 +0100
- Subject: init_properties()
Hi,
I have the following in my local tree:
diff -u -r1.41 natSystem.cc
--- natSystem.cc 2001/09/05 17:11:57 1.41
+++ natSystem.cc 2001/11/16 19:15:39
@@ -302,7 +302,8 @@
// A convenience define.
#define SET(Prop,Val) \
- newprops->put(JvNewStringLatin1 (Prop), JvNewStringLatin1 (Val))
+ Prop != NULL && Val != NULL \
+ && newprops->put(JvNewStringLatin1 (Prop), JvNewStringLatin1 (Val))
I must have put it there a while ago but I cannot remember how I found
out that I had to do that. From printing out the System properties it
seems that GCJVERSION and PREFIX are not set somehow. If I recompile
without the NULL checks then all java programs just print 'aborted'
(they SEGV in strlen).
Does anybody else have this or is there something wrong with my setup?
(I have only a up to date libjava directory the rest of my gcc tree is
from 28 September.)
Cheers,
Mark
--
Stuff to read:
<http://www.toad.com/gnu/whatswrong.html>
What's Wrong with Copy Protection, by John Gilmore