This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]