Changeset 786:2040b19c0e73 in livinglogic.java.ul4

Show
Ignore:
Timestamp:
01/26/13 18:46:06 (7 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Don't allow assignment to self.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/main/java/com/livinglogic/ul4/Utils.java

    r777 r786  
    249249        if (varname instanceof String) 
    250250        { 
     251            if ("self".equals(varname)) 
     252                throw new RuntimeException("can't assign to self"); 
    251253            variables.put((String)varname, item); 
    252254        }