public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libgcj/10172: System.properties cannot be given with '-Dmyprop=myvalue'
@ 2003-03-20 20:40 jsturm
  0 siblings, 0 replies; 3+ messages in thread
From: jsturm @ 2003-03-20 20:40 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, java-prs, jsturm, mriekkinen, nobody

Synopsis: System.properties cannot be given with '-Dmyprop=myvalue'

Responsible-Changed-From-To: unassigned->jsturm
Responsible-Changed-By: jsturm
Responsible-Changed-When: Thu Mar 20 20:40:51 2003
Responsible-Changed-Why:
    I'll handle it.
State-Changed-From-To: open->feedback
State-Changed-By: jsturm
State-Changed-When: Thu Mar 20 20:40:51 2003
State-Changed-Why:
    Waiting for feedback.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10172


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

* Re: libgcj/10172: System.properties cannot be given with '-Dmyprop=myvalue'
@ 2003-03-20 20:46 Jeff Sturm
  0 siblings, 0 replies; 3+ messages in thread
From: Jeff Sturm @ 2003-03-20 20:46 UTC (permalink / raw)
  To: jsturm; +Cc: gcc-prs

The following reply was made to PR libgcj/10172; it has been noted by GNATS.

From: Jeff Sturm <jsturm@one-point.com>
To: mriekkinen@yahoo.com
Cc: gcc-gnats@gcc.gnu.org, <gcc-prs@gcc.gnu.org>, <gcc-bugs@gcc.gnu.org>,
   <java-prs@gcc.gnu.org>
Subject: Re: libgcj/10172: System.properties cannot be given with '-Dmyprop=myvalue'
Date: Thu, 20 Mar 2003 15:40:20 -0500 (EST)

 On 20 Mar 2003 mriekkinen@yahoo.com wrote:
 > Code written so, that it prints a System property 'name' into console
 > prints just null.
 > > ./HelloWorld -Dname=mcr70
 >
 > It results in:
 > HelloWorld null
 
 That usage isn't supported.  The `-D' argument is intended to be used with
 the gcj compiler, as in:
 
 gcj -Dname=mcr70 HelloWorld.java --main=HelloWorld -o HelloWorld
 
 Or you can use the gij bytecode interpreter:
 
 gij -Dname=mcr70 HelloWorld
 
 For natively compiled code you may also set the GCJ_PROPERTIES environment
 variable:
 
 env GCJ_PROPERTIES=name=mcr70 ./HelloWorld
 
 Let me know if any of these don't work for you.
 
 Jeff
 


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

* libgcj/10172: System.properties cannot be given with '-Dmyprop=myvalue'
@ 2003-03-20 20:06 mriekkinen
  0 siblings, 0 replies; 3+ messages in thread
From: mriekkinen @ 2003-03-20 20:06 UTC (permalink / raw)
  To: gcc-gnats


>Number:         10172
>Category:       libgcj
>Synopsis:       System.properties cannot be given with '-Dmyprop=myvalue'
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 20 20:06:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Mika Riekkinen
>Release:        gcj (GCC) 3.2
>Organization:
>Environment:
Linux snowhite 2.4.20-4GB #1 Tue Mar 4 13:12:53 UTC 2003 i686 unknown unknown GNU/Linux
SuSE 8.2 beta3
>Description:
System.properties, other than default ones are not available to user code

Code written so, that it prints a System property 'name' into console prints just null.
> ./HelloWorld -Dname=mcr70

It results in:
HelloWorld null
>How-To-Repeat:
public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("HelloWorld " + System.getProperty("name"));
    }
}
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2003-03-20 20:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-20 20:40 libgcj/10172: System.properties cannot be given with '-Dmyprop=myvalue' jsturm
  -- strict thread matches above, loose matches on Subject: below --
2003-03-20 20:46 Jeff Sturm
2003-03-20 20:06 mriekkinen

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