Author: dda
Date: 2007-12-19 11:32:47 -0800 (Wed, 19 Dec 2007)
New Revision: 7619

Modified:
   
openlaszlo/branches/devildog/WEB-INF/lps/server/src/org/openlaszlo/sc/SWF9Generator.java
Log:
Change 20071219-dda-r by [EMAIL PROTECTED] on 2007-12-19 14:30:18 EST
    in /Users/dda/laszlo/src/svn/openlaszlo/branches/devildog
    for http://svn.openlaszlo.org/openlaszlo/branches/devildog

Summary: No longer require classes to inherit from 'Instance'

New Features:

Bugs Fixed: LPP-5234

Technical Reviewer: ptw (pending)
QA Reviewer: hminsky (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
    back out previous change to insert 'extends Instance' to any
    class that didn't explicitly use 'extends'.

Tests:
   LzNode is verified to longer extend Instance in output files.



Modified: 
openlaszlo/branches/devildog/WEB-INF/lps/server/src/org/openlaszlo/sc/SWF9Generator.java
===================================================================
--- 
openlaszlo/branches/devildog/WEB-INF/lps/server/src/org/openlaszlo/sc/SWF9Generator.java
    2007-12-19 19:32:31 UTC (rev 7618)
+++ 
openlaszlo/branches/devildog/WEB-INF/lps/server/src/org/openlaszlo/sc/SWF9Generator.java
    2007-12-19 19:32:47 UTC (rev 7619)
@@ -45,11 +45,6 @@
   public static final boolean USE_COMPILER_DEBUG_FLAG = true;
 
   /**
-   * If no 'extends' keyword is present, we insert an inheritence.
-   */
-  public static final String DEFAULT_SUPER_CLASS = "Instance";
-
-  /**
    * Saved program node, to show during debugging
    */
   SimpleNode savedProgram = null;
@@ -102,10 +97,6 @@
     SimpleNode superclass = children[2];
     SimpleNode mixins = children[3];
 
-    if (superclass instanceof ASTEmptyExpression && 
!classnameString.equals(DEFAULT_SUPER_CLASS)) {
-      superclass = children[2] = new ASTIdentifier(DEFAULT_SUPER_CLASS);
-    }
-
     SimpleNode[] dirs = (SimpleNode [])(Arrays.asList(children).subList(4, 
children.length).toArray(new SimpleNode[0]));
     List props = new ArrayList();
     List classProps = new ArrayList();


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to