harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Beliaev (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-3981) [drlvm][init] command line options order should not matter
Date Wed, 06 Jun 2007 14:58:26 GMT

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

Vladimir Beliaev updated HARMONY-3981:
--------------------------------------

    Attachment: H3981.patch

This is actually the laucncher issue, so this is [classlib][launcher] bug (please get the
summary updated)...

The following code causes the issue:

  modules/luni/src/main/native/launcher/shared/main.c, lines 945-981:

   for (i = 1; i < classArg; i++)
   {
          [skipped...]
           /* special coding for -classpath and -cp */
           /* they get passed to the vm as -Djava.class.path */
           if ((strcmp (argv[i], "-cp") == 0)
                   || (strcmp (argv[i], "-classpath") == 0))
           {
               [skipped...]
               i++;              /*skip next arguement */
           }
           else if (strcmp(argv[i], "-verify")==0)
           {
               options[j].optionString="-Xverify";
               i++; ///////////////////// THIS IS WRONG INCREMENT
               [skipped...]
           }
       }
   }

So, the argument right after '-verify' one was always missed (it is interesting why only EUT
was affected)...

The attached patch fixing this issue (sorry, it is not really complex)...

Thanks
Vladimir Beliaev

> [drlvm][init] command line options order should not matter
> ----------------------------------------------------------
>
>                 Key: HARMONY-3981
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3981
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Roman S. Bushmanov
>         Attachments: H3981.patch
>
>
> The command 
> java -cp <classpath> -verify <class>  
> executes the specified class while the command
> java -verify -cp <classpath> <class>
> prints the following error message and returns.
> Unknown option <classpath>
> Use java -help to get help on command line options
> Both commands works fine for RI. 
> Affected tests:
> functional/org/apache/harmony/test/func/vm/cli/verify/verify.xml
> (see HARMONY-3528)

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


Mime
View raw message