Compile error
Compile error in latest feedback (rev 78).
/home/sverre/TUDelft/feedback/feedback/.servletapp/build.xml:78: warning: ‘includeantruntime’ was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
Submitted by Sverre Rabbelier on 4 February 2011 at 14:51
Compiling 237 source files to /home/sverre/TUDelft/feedback/feedback/.servletapp/WEB-INF/classes
/home/sverre/TUDelft/feedback/feedback/.servletapp/src-generated/webdsl/generated/functions/genactionpredicate_editCourse__0_.java:21: cannot find symbol
symbol : variable course0
location: class webdsl.generated.functions.genactionpredicate_editCourse__0_
return !org.webdsl.tools.Utils.equal(securityContext, null) && webdsl.generated.functions.canViewCourseEvaluation_.canViewCourseEvaluation_(course0, securityContext.getPrincipal());
^
/home/sverre/TUDelft/feedback/feedback/.servletapp/src-generated/webdsl/generated/functions/genactionpredicate_showCourseEvaluation__0_.java:21: cannot find symbol
symbol : variable course0
location: class webdsl.generated.functions.genactionpredicate_showCourseEvaluation__0_
return !org.webdsl.tools.Utils.equal(securityContext, null) && webdsl.generated.functions.canViewCourseEvaluation_.canViewCourseEvaluation_(course0, securityContext.getPrincipal());
^
/home/sverre/TUDelft/feedback/feedback/.servletapp/src-generated/webdsl/generated/functions/genpagepredicate_editCourse0_.java:21: cannot find symbol
symbol : variable course0
location: class webdsl.generated.functions.genpagepredicate_editCourse0_
return !org.webdsl.tools.Utils.equal(securityContext, null) && webdsl.generated.functions.canViewCourseEvaluation_.canViewCourseEvaluation_(course0, securityContext.getPrincipal());
^
/home/sverre/TUDelft/feedback/feedback/.servletapp/src-generated/webdsl/generated/functions/genpagepredicate_showCourseEvaluation0_.java:21: cannot find symbol
symbol : variable course0
location: class webdsl.generated.functions.genpagepredicate_showCourseEvaluation0_
return !org.webdsl.tools.Utils.equal(securityContext, null) && webdsl.generated.functions.canViewCourseEvaluation_.canViewCourseEvaluation_(course0, securityContext.getPrincipal());
^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors
Issue Log
This happens whenever you have a pointcut with something like
page editCourse(*)
.
The problem is that the
course
argument has to be used in each pointcut element:pointcut courseEvaluations(course : Course) { page showCourseEvaluation(*), page editCourse(*) }
->
pointcut courseEvaluations(course : Course) { page showCourseEvaluation(course), page editCourse(course) }
I’ve added a check for this in rev 4402.
According to http://webdsl.org/selectpage/Manual/AccessControl the * use is allowed?
You can use * to indicate that the element may have additional arguments, however, all the specified pointcut arguments have to be bound explicitly in each element.
Log in to post comments