diff options
author | Omair Majid <[email protected]> | 2012-03-14 11:27:16 -0400 |
---|---|---|
committer | Omair Majid <[email protected]> | 2012-03-14 11:27:16 -0400 |
commit | bf89d620ace4a20270fee72285f9c4c9bfa6b345 (patch) | |
tree | bbeda7a0916ce754b66afaf0e98f1c2032722540 /netx/net/sourceforge/jnlp/LaunchHandler.java | |
parent | 19038d58d1ee7981937a8de2014b9178d272e5cd (diff) |
Launch errors are not being printed to terminal
2012-03-14 Omair Majid <[email protected]>
Print exceptions to terminal when running in gui mode too.
* netx/net/sourceforge/jnlp/AbstractLaunchHandler.java: New file.
* netx/net/sourceforge/jnlp/DefaultLaunchHandler.java: Extend
AbstractLaunchHandler.
(DefaultLaunchHandler): New method.
(printMessage): Moved to parent class.
* netx/net/sourceforge/jnlp/GuiLaunchHandler.java: Extend
AbstractLaunchHandler.
(GuiLauchHandler): New method.
(launchError): Print the error too.
(launchWarning,validationError): Call parent's printMessage.
* netx/net/sourceforge/jnlp/LaunchException.java: Use standard java
exception chaining. This removes compatibility with pre-java 1.3 class
libraries.
(LaunchException(JNLPFile,Exception,String,String,String,String)): Pass
cause to parent so exceptions are chanined properly.
(LaunchException(String,Throwable),LaunchException(Throwable)): Call
parent's constructor.
(printStackTrace(PrintStream),printStackTrace(PrintWriter),getCause):
Removed. Use parent's implementation instead.
(getCauses): Removed.
* netx/net/sourceforge/jnlp/LaunchHandler.java
(validationError): Rename argument to clarify meaing.
* netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java
(initialize): Redirect output of all handlers to System.err.
* plugin/icedteanp/java/sun/applet/PluginAppletSecurityContext.java
(PluginAppletSecurityContext): Likewise.
* tests/netx/unit/net/sourceforge/jnlp/DefaultLaunchHandlerTest.java,
* tests/netx/unit/net/sourceforge/jnlp/LaunchExceptionTest.java: New
file. Contains tests.
Diffstat (limited to 'netx/net/sourceforge/jnlp/LaunchHandler.java')
-rw-r--r-- | netx/net/sourceforge/jnlp/LaunchHandler.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/netx/net/sourceforge/jnlp/LaunchHandler.java b/netx/net/sourceforge/jnlp/LaunchHandler.java index f12dcf6..7d6728c 100644 --- a/netx/net/sourceforge/jnlp/LaunchHandler.java +++ b/netx/net/sourceforge/jnlp/LaunchHandler.java @@ -50,7 +50,7 @@ public interface LaunchHandler { * * @return true to allow the application to continue, false to stop it. */ - public boolean validationError(LaunchException security); + public boolean validationError(LaunchException error); // this method will probably be replaced when real security // controller is in place. |