cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gkossakow...@apache.org
Subject svn commit: r681702 - /cocoon/trunk/blocks/cocoon-flowscript/cocoon-flowscript-impl/src/main/java/org/apache/cocoon/components/flow/javascript/fom/FOM_JavaScriptInterpreter.java
Date Fri, 01 Aug 2008 14:22:10 GMT
Author: gkossakowski
Date: Fri Aug  1 07:22:09 2008
New Revision: 681702

URL: http://svn.apache.org/viewvc?rev=681702&view=rev
Log:
Remove use of deprecated method setOptimazationLevel that actually does nothing in current
implementation of debugger.
Switched to new method of attaching debugger to the context.
This fixes a problem with java.lang.IllegalStateException being thrown when Flowscript debugger
is enabled.

Modified:
    cocoon/trunk/blocks/cocoon-flowscript/cocoon-flowscript-impl/src/main/java/org/apache/cocoon/components/flow/javascript/fom/FOM_JavaScriptInterpreter.java

Modified: cocoon/trunk/blocks/cocoon-flowscript/cocoon-flowscript-impl/src/main/java/org/apache/cocoon/components/flow/javascript/fom/FOM_JavaScriptInterpreter.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-flowscript/cocoon-flowscript-impl/src/main/java/org/apache/cocoon/components/flow/javascript/fom/FOM_JavaScriptInterpreter.java?rev=681702&r1=681701&r2=681702&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-flowscript/cocoon-flowscript-impl/src/main/java/org/apache/cocoon/components/flow/javascript/fom/FOM_JavaScriptInterpreter.java
(original)
+++ cocoon/trunk/blocks/cocoon-flowscript/cocoon-flowscript-impl/src/main/java/org/apache/cocoon/components/flow/javascript/fom/FOM_JavaScriptInterpreter.java
Fri Aug  1 07:22:09 2008
@@ -142,10 +142,9 @@
                     db.setVisible(false);
                 }
             });
-            db.setOptimizationLevel(OPTIMIZATION_LEVEL);
             db.setVisible(true);
             debugger = db;
-            ContextFactory.getGlobal().addListener(debugger);
+            debugger.attachTo(ContextFactory.getGlobal());
         }
         return debugger;
     }



Mime
View raw message