harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Varlamov" <alexey.v.varla...@gmail.com>
Subject Re: [general] Running without a public static main (was: Re: svn commit: r599020 - /harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/vm/JarRunner.java)
Date Thu, 29 Nov 2007 05:08:19 GMT
That's right, we have such issue open for shared launcher, and jar
launcher should be consistent, too. This is mandated by JLS, btw - so
nothing really strange ;)
I reopened HARMONY-5201 to fix this matter.

--
Alexey

2007/11/28, Tim Ellison <t.p.ellison@gmail.com>:
> Strange behavior by the RI, though I fully agree with being compatible
> here -- tempting as it is to print out a rude message and just quit :-)
>
> Regards,
> Tim
>
>
> gshimansky@apache.org wrote:
> > Author: gshimansky
> > Date: Wed Nov 28 07:12:41 2007
> > New Revision: 599020
> >
> > URL: http://svn.apache.org/viewvc?rev=599020&view=rev
> > Log:
> > Applied patch from HARMONY-5201
> > [drlvm][kernel] Notepad.jar cannot open with "-jar" parameter
> >
> >
> > Modified:
> >     harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/vm/JarRunner.java
> >
> > Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/vm/JarRunner.java
> > URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/vm/JarRunner.java?rev=599020&r1=599019&r2=599020&view=diff
> > ==============================================================================
> > --- harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/vm/JarRunner.java
(original)
> > +++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/vm/JarRunner.java
Wed Nov 28 07:12:41 2007
> > @@ -70,6 +70,7 @@
> >
> >          Class mainClass = Thread.currentThread().getContextClassLoader().loadClass(className);
> >          Method mainMethod = mainClass.getMethod("main", args.getClass());
> > +        mainMethod.setAccessible(true);
> >
> >          String newArgs[] = new String[args.length - 1];
> >
> > @@ -79,4 +80,5 @@
> >
> >          mainMethod.invoke(null, (java.lang.Object) newArgs);
> >      }
> > -}
> > \ No newline at end of file
> > +}
> > +
> >
> >
> >
>

Mime
View raw message