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
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

Submitted by Sverre Rabbelier on 4 February 2011 at 14:51

On 4 February 2011 at 15:03 Sverre Rabbelier commented:

This happens whenever you have a pointcut with something like page editCourse(*).


On 5 February 2011 at 21:21 Danny Groenewegen closed this issue.

On 5 February 2011 at 21:21 Danny Groenewegen commented:

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.


On 5 February 2011 at 21:29 Sverre Rabbelier commented:

According to http://webdsl.org/selectpage/Manual/AccessControl the * use is allowed?


On 5 February 2011 at 21:46 Danny Groenewegen commented:

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.


On 5 February 2011 at 22:08 Danny Groenewegen tagged 1.2.7

Log in to post comments