changeset 22:a3941697dcdd

launch applications that have a non-public main class 2010-10-26 Omair Majid <omajid@redhat.com> * netx/net/sourceforge/jnlp/Launcher.java (launchApplication): Mark main method as accessible before invoking it.
author Omair Majid <omajid@redhat.com>
date Tue, 26 Oct 2010 18:00:35 -0400
parents 9aa450ca3d99
children 33f17695e034
files ChangeLog netx/net/sourceforge/jnlp/Launcher.java
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Oct 26 17:56:41 2010 -0400
+++ b/ChangeLog	Tue Oct 26 18:00:35 2010 -0400
@@ -1,3 +1,9 @@
+2010-10-26  Omair Majid  <omajid@redhat.com>
+
+	* netx/net/sourceforge/jnlp/Launcher.java
+	(launchApplication): Mark main method as accessible before
+	invoking it.
+
 2010-10-26  Omair Majid  <omajid@redhat.com>
 
 	* netx/net/sourceforge/jnlp/Parser.java: Add 1.1, 1.2, 1.3 and
--- a/netx/net/sourceforge/jnlp/Launcher.java	Tue Oct 26 17:56:41 2010 -0400
+++ b/netx/net/sourceforge/jnlp/Launcher.java	Tue Oct 26 18:00:35 2010 -0400
@@ -474,6 +474,7 @@
                 splashScreen.dispose();
             }
 
+            main.setAccessible(true);
             main.invoke(null, new Object[] { args } );
 
             return app;