You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Ivan Popov (JIRA)" <ji...@apache.org> on 2007/06/15 15:28:29 UTC
[jira] Created: (HARMONY-4189) [classlib][launcher][eut] Harmony
JRE java launcher strips quotes for JVM properties
[classlib][launcher][eut] Harmony JRE java launcher strips quotes for JVM properties
------------------------------------------------------------------------------------
Key: HARMONY-4189
URL: https://issues.apache.org/jira/browse/HARMONY-4189
Project: Harmony
Issue Type: Bug
Components: Classlib
Environment: Windows/x86, Linux/x86, harmony-jdk-r547543
Reporter: Ivan Popov
Harmony JRE java launcher works differently from RI for quoted JVM properties specified in command line. It strips both double and single quotes for a property value. With quoted program arguments Harmony JRE launcher works correctly.
I'm attaching archive with simple tests and scripts launching these tests with different quotation. Here is tests output for window, which shows 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
============ Done ============
Testing quotes for empty JVM properties
====== Checking JDK/jre/bin/java ======
*** SUN JRE output:
""
''
*** Harmony JRE 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'
============ Done ============
Testing quotes for empty program arguments
====== Checking JDK/jre/bin/java ======
*** SUN JRE output:
""
''
*** Harmony JRE output:
""
''
============ Done ============
On Linux results are the same.
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.
[jira] Updated: (HARMONY-4189) [classlib][launcher][eut] Harmony
JRE java launcher strips quotes for JVM properties
Posted by "Ivan Popov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ivan Popov updated HARMONY-4189:
--------------------------------
Attachment: check_quotes_jre.zip
> [classlib][launcher][eut] Harmony JRE java launcher strips quotes for JVM properties
> ------------------------------------------------------------------------------------
>
> Key: HARMONY-4189
> URL: https://issues.apache.org/jira/browse/HARMONY-4189
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: Windows/x86, Linux/x86, harmony-jdk-r547543
> Reporter: Ivan Popov
> Attachments: check_quotes_jre.zip
>
>
> Harmony JRE java launcher works differently from RI for quoted JVM properties specified in command line. It strips both double and single quotes for a property value. With quoted program arguments Harmony JRE launcher works correctly.
> I'm attaching archive with simple tests and scripts launching these tests with different quotation. Here is tests output for window, which shows 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
> ============ Done ============
> Testing quotes for empty JVM properties
> ====== Checking JDK/jre/bin/java ======
> *** SUN JRE output:
> ""
> ''
> *** Harmony JRE 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'
> ============ Done ============
> Testing quotes for empty program arguments
> ====== Checking JDK/jre/bin/java ======
> *** SUN JRE output:
> ""
> ''
> *** Harmony JRE output:
> ""
> ''
> ============ Done ============
> On Linux results are the same.
> 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.