Mercurial > hg > release > icedtea6-1.9
changeset 2225:e9de4114620e
netx: use getMethod instead of getDeclaredMethod to find main method
2010-08-05 Omair Majid <omajid@redhat.com>
* NEWS: Update with netx bugfix.
* netx/net/sourceforge/jnlp/Launcher.java
(launchApplication): Replace use of getDeclaredMethod with
getMethod. Fixes applications that have a main-class that
inherits main(String[]).
author | Omair Majid <omajid@redhat.com> |
---|---|
date | Thu, 05 Aug 2010 17:40:41 -0400 |
parents | 6530d2aa9076 |
children | ad637c9154cf |
files | ChangeLog NEWS netx/net/sourceforge/jnlp/Launcher.java |
diffstat | 3 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Thu Aug 05 16:58:30 2010 +0100 +++ b/ChangeLog Thu Aug 05 17:40:41 2010 -0400 @@ -1,3 +1,11 @@ +2010-08-05 Omair Majid <omajid@redhat.com> + + * NEWS: Update with netx bugfix. + * netx/net/sourceforge/jnlp/Launcher.java + (launchApplication): Replace use of getDeclaredMethod with + getMethod. Fixes applications that have a main-class that + inherits main(String[]). + 2010-08-05 Andrew John Hughes <ahughes@redhat.com> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=560056
--- a/NEWS Thu Aug 05 16:58:30 2010 +0100 +++ b/NEWS Thu Aug 05 17:40:41 2010 -0400 @@ -717,6 +717,7 @@ - Do not use Look and Feel related methods for setting up security dialogs - Minor fixes to JNLPRandomAccessFile - Fix browser command in BasicService.showDocument(URL) + - Run programs that inherit main(String[]) in their main-class New in release 1.8.1 (2010-07-28):
--- a/netx/net/sourceforge/jnlp/Launcher.java Thu Aug 05 16:58:30 2010 +0100 +++ b/netx/net/sourceforge/jnlp/Launcher.java Thu Aug 05 17:40:41 2010 -0400 @@ -441,7 +441,7 @@ Class mainClass = app.getClassLoader().loadClass(mainName); - Method main = mainClass.getDeclaredMethod("main", new Class[] {String[].class} ); + Method main = mainClass.getMethod("main", new Class[] {String[].class} ); String args[] = file.getApplication().getArguments(); SwingUtilities.invokeAndWait(new Runnable() {