Case statement inside for loop give java compilation error
Program below results in java compilation errors:
application hydrasection bla
define page root() {
}define main() {
body()
}define body (){
“blablabla”
}entity Project {
name :: String (id)
}define page bla(p: Project) {
Submitted by Rob Vermaas on 11 June 2010 at 09:12
main()
define body() {
for(p : Project) {
case(p.name) {
"" {“dumdidum”}
“bla” {“bladibla”}
default {“danniet”}
}
}
}
}
Issue Log
On 8 March 2012 at 14:23 Elmer van Chastelet commented:
The problem is that the assignment to the case value variable (%templatename%casevalXX) is done in the
initializeLocalVars()
method, wherep
is not available, because it’s only available in the for-loop.
Log in to post comments