avoid 1.5 specific methods
authorjprocter <Jim Procter>
Mon, 17 Jan 2011 14:32:45 +0000 (14:32 +0000)
committerjprocter <Jim Procter>
Mon, 17 Jan 2011 14:32:45 +0000 (14:32 +0000)
src/jalview/javascript/JSFunctionExec.java

index 64e8a0e..9c6f578 100644 (file)
@@ -162,7 +162,7 @@ public class JSFunctionExec implements Runnable
                 // strip out nulls and complex objects that we can't pass this
                 // way.
                 if (objects[i] != null
-                        && !(objects[i].getClass().getPackage().getName()
+                        && !(objects[i].getClass().getName()
                                 .indexOf("jalview") == 0))
                 {
                   sb.append(objects[i].toString());
@@ -194,7 +194,7 @@ public class JSFunctionExec implements Runnable
               }
               else
               {
-                jsex[0] = new Exception(jex);
+                jsex[0] = jex;
               }
             }
             ;