harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Varlamov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-3184) [drlvm][netbeans] Aborting on RI-supported options
Date Fri, 16 Feb 2007 06:59:05 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-3184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12473632
] 

Alexey Varlamov commented on HARMONY-3184:
------------------------------------------

Partially fixed at 508325: added handling of "-XX:name=val" options; unknown options are ignored
(parsed but never used).
This enables running apps so priority of this issue may be lower now. Remaining (and more
complex) part is to add validation of options, so that passing unsupported option would produce
a warning.
Actually this is a missing feature rather than bug, so it may worth to change issue type and
subject as well.

> [drlvm][netbeans] Aborting on RI-supported options
> --------------------------------------------------
>
>                 Key: HARMONY-3184
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3184
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports, DRLVM
>            Reporter: Vasily Zakharov
>
> DRL VM aborts if it finds an unknown option in the command line. However, some applications
put RI-specific options to command line, and DRL VM aborts, making those applications unusable
with DRL VM.
> This issue was discovered while trying to run Netbeans on Harmony, it passes -XX:PermSize
and -XX:MaxPermSize. Netbeans launcher for Windows is .exe file, and tweaking the parameters
it passes to JVM is difficult.
> It seems like an important compatibility issue, and the right way to resolve it is knowing
and ignoring RI-specific options, like JRockit does.
> Here's a simple example:
> java -XX:PermSize=32m -XX:MaxPermSize=160m java.lang.Object
> Output on RI:
> Exception in thread "main" java.lang.NoSuchMethodError: main
> Output on BEA JRockit:
> [JRockit] WARNING:  '-XX:PermSize=32m' is not a valid VM option. Ignoring.
> [JRockit] WARNING:  '-XX:MaxPermSize=160m' is not a valid VM option. Ignoring.
> java.lang.NoSuchMethodError: main
> Output on Harmony/IBM VM (sorry for russian due to russian locale on my machine):
> HMYEXEL056E В классе java.lang.Object не реализован main()
> Exception in thread "main" java.lang.NoSuchMethodError: java/lang/Object.main([Ljava/lang/String;)V
> FAILED to invoke JVM.
> Output on Harmony/DRL VM:
> Unknown option -XX:PermSize=32m
> Use java -help to get help on command line options

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