[Laszlo-checkins] r6334 - openlaszlo/branches/wafflecone/WEB-INF/lps/server/src/org/openlaszlo/compiler

ptw@openlaszlo.org ptw at openlaszlo.org
Mon Sep 3 15:02:29 PDT 2007


Author: ptw
Date: 2007-09-03 15:02:28 -0700 (Mon, 03 Sep 2007)
New Revision: 6334

Modified:
   openlaszlo/branches/wafflecone/WEB-INF/lps/server/src/org/openlaszlo/compiler/ViewCompiler.java
Log:
Change 20070903-ptw-m by ptw at dueling-banjos.local on 2007-09-03 12:53:26 EDT
    in /Users/ptw/OpenLaszlo/wafflecone
    for http://svn.openlaszlo.org/openlaszlo/branches/wafflecone

Summary: Paper over source/binary include bug

Bugs Fixed:
LPP-4463 'ERROR:Class for tag include has not been defined yet'

Technical Reviewer: promanik (Message-Id: <6.2.1.2.0.20070903135340.0220feb0 at na>)
QA Reviewer: mamye (pending)

Details:
    Decline to compile an include tag if it leaks through to the view
    compiler.

Tests:



Modified: openlaszlo/branches/wafflecone/WEB-INF/lps/server/src/org/openlaszlo/compiler/ViewCompiler.java
===================================================================
--- openlaszlo/branches/wafflecone/WEB-INF/lps/server/src/org/openlaszlo/compiler/ViewCompiler.java	2007-09-03 21:45:15 UTC (rev 6333)
+++ openlaszlo/branches/wafflecone/WEB-INF/lps/server/src/org/openlaszlo/compiler/ViewCompiler.java	2007-09-03 22:02:28 UTC (rev 6334)
@@ -154,6 +154,15 @@
      */
     void compileXML(Element element, FontInfo fontInfo)
     {
+        // TODO: [2007-09-03 ptw] (LPP-4634) You should not be able to
+        // get here.  This appears to happen when a binary file has
+        // already included a sub-library and that same sub-library is
+        // included by a source file.  Since the include is already
+        // loaded, it is not expanded in expandIncludes, but because
+        // ViewCompiler.isElement returns true for everything, we end up
+        // here.  For now, just don't do anything.
+        if ("include".equals(element.getName())) return;
+
         // TODO: [12-27-2002 ows] use the log4j API instead of this property
         boolean tracexml = mEnv.getBooleanProperty("trace.xml");
         if (tracexml) {



More information about the Laszlo-checkins mailing list