libgcj/10172: System.properties cannot be given with '-Dmyprop=myvalue'

mriekkinen@yahoo.com mriekkinen@yahoo.com
Thu Mar 20 20:06:00 GMT 2003


>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:



More information about the Java-prs mailing list