public inbox for java-prs@sourceware.org help / color / mirror / Atom feed
* [Bug java/16923] New: Options passed to JNI_CreateJavaVM are ignored @ 2004-08-08 20:11 thhal at mailblocks dot com 2004-08-08 20:15 ` [Bug libgcj/16923] " pinskia at gcc dot gnu dot org ` (3 more replies) 0 siblings, 4 replies; 7+ messages in thread From: thhal at mailblocks dot com @ 2004-08-08 20:11 UTC (permalink / raw) To: java-prs Options that are passed in the JavaVMInitArgs structure passed to the JNI_CreateJavaVM function seems to be completely ignored. The following code should result in a setting of the system property "some.property" but it doesn't. JNIEnv* env; JavaVMInitArgs vm_args; JavaVMOption options[1]; options[0].optionString = "-Dsome.property=propval"; options[0].extraInfo = 0; vm_args.nOptions = 1; vm_args.options = &options; vm_args.version = JNI_VERSION_1_4; vm_args.ignoreUnrecognized = JNI_TRUE; if(JNI_CreateJavaVM(&s_javaVM, (void **)&env, &vm_args) != JNI_OK) { fputs("Unable to create Java VM\n", stderr); return 1; } -- Summary: Options passed to JNI_CreateJavaVM are ignored Product: gcc Version: 3.4.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: java AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: thhal at mailblocks 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=16923 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libgcj/16923] Options passed to JNI_CreateJavaVM are ignored 2004-08-08 20:11 [Bug java/16923] New: Options passed to JNI_CreateJavaVM are ignored thhal at mailblocks dot com @ 2004-08-08 20:15 ` pinskia at gcc dot gnu dot org 2004-08-14 7:11 ` [Bug libgcj/16923] -D* " pinskia at gcc dot gnu dot org ` (2 subsequent siblings) 3 siblings, 0 replies; 7+ messages in thread From: pinskia at gcc dot gnu dot org @ 2004-08-08 20:15 UTC (permalink / raw) To: java-prs -- What |Removed |Added ---------------------------------------------------------------------------- Component|java |libgcj http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16923 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libgcj/16923] -D* Options passed to JNI_CreateJavaVM are ignored 2004-08-08 20:11 [Bug java/16923] New: Options passed to JNI_CreateJavaVM are ignored thhal at mailblocks dot com 2004-08-08 20:15 ` [Bug libgcj/16923] " pinskia at gcc dot gnu dot org @ 2004-08-14 7:11 ` pinskia at gcc dot gnu dot org 2005-02-24 13:19 ` cvs-commit at gcc dot gnu dot org 2005-02-24 14:02 ` fitzsim at redhat dot com 3 siblings, 0 replies; 7+ messages in thread From: pinskia at gcc dot gnu dot org @ 2004-08-14 7:11 UTC (permalink / raw) To: java-prs ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-14 07:11 ------- Confirmed: else if (! strncmp (ia->options[i].optionString, "-D", 2)) { // FIXME. continue; } -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Last reconfirmed|0000-00-00 00:00:00 |2004-08-14 07:11:13 date| | Summary|Options passed to |-D* Options passed to |JNI_CreateJavaVM are ignored|JNI_CreateJavaVM are ignored http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16923 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libgcj/16923] -D* Options passed to JNI_CreateJavaVM are ignored 2004-08-08 20:11 [Bug java/16923] New: Options passed to JNI_CreateJavaVM are ignored thhal at mailblocks dot com 2004-08-08 20:15 ` [Bug libgcj/16923] " pinskia at gcc dot gnu dot org 2004-08-14 7:11 ` [Bug libgcj/16923] -D* " pinskia at gcc dot gnu dot org @ 2005-02-24 13:19 ` cvs-commit at gcc dot gnu dot org 2005-02-24 14:02 ` fitzsim at redhat dot com 3 siblings, 0 replies; 7+ messages in thread From: cvs-commit at gcc dot gnu dot org @ 2005-02-24 13:19 UTC (permalink / raw) To: java-prs ------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-02-23 17:36 ------- Subject: Bug 16923 CVSROOT: /cvs/gcc Module name: gcc Changes by: fitzsim@gcc.gnu.org 2005-02-23 17:36:26 Modified files: gcc/java : ChangeLog gcj.texi libjava : ChangeLog jni.cc prims.cc libjava/gcj : cni.h javaprims.h libjava/include: java-props.h libjava/java/lang: natRuntime.cc libjava/testsuite/libjava.jni: jni.exp Added files: libjava/testsuite/libjava.jni/invocation: PR16923.c PR16923.java PR16923.out Log message: 2005-02-23 Thomas Fitzsimmons <fitzsim@redhat.com> PR libgcj/16923 * gcj.texi (Invocation): Add descriptions of JvVMInitArgs and JvVMOption. 2005-02-23 Thomas Fitzsimmons <fitzsim@redhat.com> PR libgcj/16923 * jni.cc (JNI_CreateJavaVM): Check JNI version. Cast args to JvVMInitArgs. Pass args to _Jv_CreateJavaVM and check return value. Move argument parsing code to prims.cc. * prims.cc (no_properties): Remove. (_Jv_Compiler_Properties): Initialize to NULL. (_Jv_Properties_Count): Initialize to 0. (parse_verbose_args): New function. (parse_init_args): New function. (_Jv_CreateJavaVM): Call parse_init_args. (_Jv_RunMain): Check return value of _Jv_CreateJavaVM. * gcj/cni.h (JvVMOption): New struct. (JvVMInitArgs): Likewise. (JvCreateJavaVM): Declare vm_args as JvVMInitArgs* rather than void*. * libjava/gcj/javaprims.h (_Jv_VMOption): New struct. (_Jv_VMInitArgs): Likewise. * include/java-props.h (_Jv_Properties_Count): Declare. * java/lang/natRuntime.cc (insertSystemProperties): Use _Jv_Properties_Count in for loop exit condition. * testsuite/libjava.jni/jni.exp (gcj_invocation_compile_c_to_binary): New procedure. (gcj_invocation_test_one): Likewise. (gcj_jni_run): Run JNI invocation API tests. * testsuite/libjava.jni/invocation/PR16923.c, testsuite/libjava.jni/invocation/PR16923.java, testsuite/libjava.jni/invocation/PR16923.out: New test. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/ChangeLog.diff?cvsroot=gcc&r1=1.1555&r2=1.1556 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/gcj.texi.diff?cvsroot=gcc&r1=1.72&r2=1.73 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&r1=1.3389&r2=1.3390 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/jni.cc.diff?cvsroot=gcc&r1=1.94&r2=1.95 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/prims.cc.diff?cvsroot=gcc&r1=1.103&r2=1.104 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gcj/cni.h.diff?cvsroot=gcc&r1=1.14&r2=1.15 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gcj/javaprims.h.diff?cvsroot=gcc&r1=1.54&r2=1.55 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/include/java-props.h.diff?cvsroot=gcc&r1=1.7&r2=1.8 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/java/lang/natRuntime.cc.diff?cvsroot=gcc&r1=1.46&r2=1.47 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/testsuite/libjava.jni/jni.exp.diff?cvsroot=gcc&r1=1.17&r2=1.18 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/testsuite/libjava.jni/invocation/PR16923.c.diff?cvsroot=gcc&r1=NONE&r2=1.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/testsuite/libjava.jni/invocation/PR16923.java.diff?cvsroot=gcc&r1=NONE&r2=1.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/testsuite/libjava.jni/invocation/PR16923.out.diff?cvsroot=gcc&r1=NONE&r2=1.1 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16923 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libgcj/16923] -D* Options passed to JNI_CreateJavaVM are ignored 2004-08-08 20:11 [Bug java/16923] New: Options passed to JNI_CreateJavaVM are ignored thhal at mailblocks dot com ` (2 preceding siblings ...) 2005-02-24 13:19 ` cvs-commit at gcc dot gnu dot org @ 2005-02-24 14:02 ` fitzsim at redhat dot com 3 siblings, 0 replies; 7+ messages in thread From: fitzsim at redhat dot com @ 2005-02-24 14:02 UTC (permalink / raw) To: java-prs ------- Additional Comments From fitzsim at redhat dot com 2005-02-23 17:38 ------- Fixed on mainline. -- What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Target Milestone|--- |4.0.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16923 ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <bug-16923-8351@http.gcc.gnu.org/bugzilla/>]
* [Bug libgcj/16923] -D* Options passed to JNI_CreateJavaVM are ignored [not found] <bug-16923-8351@http.gcc.gnu.org/bugzilla/> @ 2008-11-18 15:01 ` howarth at nitro dot med dot uc dot edu 2008-12-20 22:22 ` howarth at nitro dot med dot uc dot edu 1 sibling, 0 replies; 7+ messages in thread From: howarth at nitro dot med dot uc dot edu @ 2008-11-18 15:01 UTC (permalink / raw) To: java-prs ------- Comment #4 from howarth at nitro dot med dot uc dot edu 2008-11-18 15:01 ------- This test case is failing on i686-apple-darwin9 at -m64 (but not -m32). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16923 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libgcj/16923] -D* Options passed to JNI_CreateJavaVM are ignored [not found] <bug-16923-8351@http.gcc.gnu.org/bugzilla/> 2008-11-18 15:01 ` howarth at nitro dot med dot uc dot edu @ 2008-12-20 22:22 ` howarth at nitro dot med dot uc dot edu 1 sibling, 0 replies; 7+ messages in thread From: howarth at nitro dot med dot uc dot edu @ 2008-12-20 22:22 UTC (permalink / raw) To: java-prs ------- Comment #5 from howarth at nitro dot med dot uc dot edu 2008-12-20 22:22 ------- Oddly, it appears that we see the failure of... Running target unix/-m64 FAIL: PR16923 run when gcc trunk is built with... Platform: i686-apple-darwin9 configure flags: --prefix=/sw --prefix=/sw/lib/gcc4.4 --mandir=/sw/share/man --infodir=/sw/share/info --enable-languages=c,c++,fortran,objc,java --with-gmp=/sw --with-libiconv-prefix=/sw --with-ppl=/sw --with-cloog=/sw --with-system-zlib --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib --with-arch=nocona --with-tune=generic --build=i686-apple-darwin9 --host=i686-apple-darwin9 --target=i686-apple-darwin9 but not when gcc trunk is built with... Platform: i686-apple-darwin9 configure flags: --build=i686-apple-darwin9 --host=i686-apple-darwin9 --target=i686-apple-darwin9 --with-gnu-as --with-tune=generic --prefix=/opt/gnu/gcc/gcc-4.4.0 --enable-debug=no --disable-nls --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-threads=posix --enable-__cxa_atexit --enable-java-gc=boehm -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16923 ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-12-20 22:22 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2004-08-08 20:11 [Bug java/16923] New: Options passed to JNI_CreateJavaVM are ignored thhal at mailblocks dot com 2004-08-08 20:15 ` [Bug libgcj/16923] " pinskia at gcc dot gnu dot org 2004-08-14 7:11 ` [Bug libgcj/16923] -D* " pinskia at gcc dot gnu dot org 2005-02-24 13:19 ` cvs-commit at gcc dot gnu dot org 2005-02-24 14:02 ` fitzsim at redhat dot com [not found] <bug-16923-8351@http.gcc.gnu.org/bugzilla/> 2008-11-18 15:01 ` howarth at nitro dot med dot uc dot edu 2008-12-20 22:22 ` howarth at nitro dot med dot uc dot edu
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).