You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Gregory Shimansky (JIRA)" <ji...@apache.org> on 2007/06/21 17:46:26 UTC

[jira] Assigned: (HARMONY-4190) [jdktools][samsa][eut] Harmony JDK java wrapper strips quotes for JVM properties and program arguments

     [ https://issues.apache.org/jira/browse/HARMONY-4190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gregory Shimansky reassigned HARMONY-4190:
------------------------------------------

    Assignee: Gregory Shimansky

> [jdktools][samsa][eut] Harmony JDK java wrapper strips quotes for JVM properties and program arguments
> ------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-4190
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4190
>             Project: Harmony
>          Issue Type: Bug
>          Components: JDK
>         Environment: Windows/x86, harmony-jdk-r547543
>            Reporter: Ivan Popov
>            Assignee: Gregory Shimansky
>         Attachments: check_quotes_jdk.zip, jdktools_samsa.patch
>
>
> In addition to an issue with Harmony JRE launcher (HARMONY-4189), Harmony JDK java wrapper strips quotes from both JVM properties and program arguments specified in command line. This is reproduced only on Windows. On Linux JDK java wrapper works similarly to JRE java launcher. 
> I'm attaching archive with simple tests and scripts, which launches tests with different quotation. Here is results on Windows, which demonstrates the difference with RI:
> $ sh check_props.sh
> Testing quotes for JVM properties
> ====== Checking JDK\jre/bin/java ======
> *** SUN JRE output:
> foo
> foo
> "foo"
> 'foo'
> *** Harmony JRE output:
> foo
> foo
> foo
> foo
> ====== Checking JDK/bin/java ======
> *** SUN JDK output:
> foo
> foo
> "foo"
> 'foo'
> *** Harmony JDK output:
> foo
> foo
> foo
> foo
> ============ Done ============
> Testing quotes for empty JVM properties
> ====== Checking JDK/jre/bin/java ======
> *** SUN JRE output:
> ""
> ''
> *** Harmony JRE output:
> ====== Checking JDK/bin/java ======
> *** SUN JDK output:
> ""
> ''
> *** Harmony JDK output:
> ============ Done ============
> $ sh check_args.sh
> Testing quotes for program arguments
> ====== Checking JDK/jre/bin/java ======
> *** SUN JRE output:
> foo
> foo
> "foo"
> 'foo'
> *** Harmony JRE output:
> foo
> foo
> "foo"
> 'foo'
> ====== Checking JDK/bin/java ======
> *** SUN JDK output:
> foo
> foo
> "foo"
> 'foo'
> *** Harmony JDK output:
> foo
> foo
> foo
> 'foo'
> ============ Done ============
> Testing quotes for empty program arguments
> ====== Checking JDK/jre/bin/java ======
> *** SUN JRE output:
> ""
> ''
> *** Harmony JRE output:
> ""
> ''
> ====== Checking JDK/bin/java ======
> *** SUN JDK output:
> ""
> ''
> *** Harmony JDK output:
> ''
> ============ Done ============
> This difference causes 13 EUT tests failures (org.eclipse.jdt.debug.tests.core.ArgumentTests) mentioned in HARMONY-4186.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.