public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/23761] New: java.library.path doesn't affect module loading path
@ 2005-09-07 12:30 fitzsim at redhat dot com
  2005-09-08 21:26 ` [Bug libgcj/23761] " cvs-commit at gcc dot gnu dot org
  2005-09-15 20:17 ` fitzsim at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: fitzsim at redhat dot com @ 2005-09-07 12:30 UTC (permalink / raw)
  To: java-prs

Setting java.library.path on the gij command line should set the module loader
path to the given argument.  Currently an attempt is made to do this in
natSystemProperties.cc:

  // If java.library.path is set, tell libltdl so we search the new
  // directories as well.  FIXME: does this work properly on Windows?
  ::java::lang::String *path =
newprops->getProperty(JvNewStringLatin1("java.library.path"));
  if (path)
    {
      char *val = (char *) _Jv_Malloc (JvGetStringUTFLength (path) + 1);
      jsize total = JvGetStringUTFRegion (path, 0, path->length(), val);
      val[total] = '\0';
      _Jv_SetDLLSearchPath (val);
      _Jv_Free (val);
    }

_Jv_SetDLLSearchPath in turn calls lt_dlsetsearchpath but this call does nothing
since lt_dlinit has not been called at this point in gij startup.

-- 
           Summary: java.library.path doesn't affect module loading path
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fitzsim at redhat dot com
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23761


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug libgcj/23761] java.library.path doesn't affect module loading path
  2005-09-07 12:30 [Bug libgcj/23761] New: java.library.path doesn't affect module loading path fitzsim at redhat dot com
@ 2005-09-08 21:26 ` cvs-commit at gcc dot gnu dot org
  2005-09-15 20:17 ` fitzsim at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-09-08 21:26 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-09-08 21:26 -------
Subject: Bug 23761

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	fitzsim@gcc.gnu.org	2005-09-08 21:26:25

Modified files:
	libjava        : ChangeLog 
	libjava/gnu/classpath: natSystemProperties.cc 
	libjava/include: java-props.h 
	libjava/java/lang: natRuntime.cc 

Log message:
	2005-09-08  Thomas Fitzsimmons  <fitzsim@redhat.com>
	
	PR libgcj/23761
	* include/java-props.h (_Jv_Module_Load_Path): Declare variable.
	* java/lang/natRuntime.cc (init): Call lt_dlsetsearchpath after
	lt_dlinit.
	* gnu/classpath/natSystemProperties.cc (_Jv_Module_Load_Path):
	Define variable.
	(_Jv_SetDLLSearchPath): Do not call lt_dlsetsearchpath.  Set
	_Jv_Module_Load_Path.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&r1=1.3734&r2=1.3735
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/classpath/natSystemProperties.cc.diff?cvsroot=gcc&r1=1.1&r2=1.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/include/java-props.h.diff?cvsroot=gcc&r1=1.9&r2=1.10
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/java/lang/natRuntime.cc.diff?cvsroot=gcc&r1=1.57&r2=1.58



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23761


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug libgcj/23761] java.library.path doesn't affect module loading path
  2005-09-07 12:30 [Bug libgcj/23761] New: java.library.path doesn't affect module loading path fitzsim at redhat dot com
  2005-09-08 21:26 ` [Bug libgcj/23761] " cvs-commit at gcc dot gnu dot org
@ 2005-09-15 20:17 ` fitzsim at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: fitzsim at redhat dot com @ 2005-09-15 20:17 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From fitzsim at redhat dot com  2005-09-15 20:17 -------
Fixed on mainline.  Closing.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23761


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-09-15 20:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-07 12:30 [Bug libgcj/23761] New: java.library.path doesn't affect module loading path fitzsim at redhat dot com
2005-09-08 21:26 ` [Bug libgcj/23761] " cvs-commit at gcc dot gnu dot org
2005-09-15 20:17 ` fitzsim at redhat dot com

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).