[jira] Created: (LIVETRIBE-66) Handle incompatible JARs gracefully

View: New views
1 Messages — Rating Filter:   Alert me  

[jira] Created: (LIVETRIBE-66) Handle incompatible JARs gracefully

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Handle incompatible JARs gracefully
-----------------------------------

                 Key: LIVETRIBE-66
                 URL: http://jira.codehaus.org/browse/LIVETRIBE-66
             Project: LiveTribe
          Issue Type: Bug
    Affects Versions: JSR223 2.0.3
            Reporter: Jim White
         Attachments: catch-error-diff.txt

In the event that you try and load an engine that is compiled for JDK 1.6 and you're on JDK 1.5 then you'll get an error that is not caught in the ScriptManager initialization and will result in any further engines not getting loaded.  I encountered this problem on my Mac where some update put the AppleScript.jar (which is for JDK 1.6 and thus throws LinkageError and/or AnnotationError if you try to load it) into $JAVA_HOME/lib/ext/.  Hugely annoying.

So this patch will catch LinkageError and AnnotationError and ignore it so that any further engines can be initialized.


--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email