When you have an entity with a property named “this” then the webdsl compiler will hang after typechecking and an error is never given, except maybe an out of memory error if you wait long enough. The following WebDSL application demonstrates the problem.

application test

entity SomeEnt {
  this :: String
}

define page root() {
}

Also if you use “this” as the name for a function argument or local variable inside entity functions then you will get “<identifier> expected”, “not a statement” or “';' expected” errors from the java compiler and not from the WebDSL compiler. However in these two cases it is clear that the errors are caused by the use of “this” as a variable name.

Submitted by Christoffer Gersen on 4 August 2011 at 11:42

Log in to post comments