[ http://issues.apache.org/jira/browse/BEEHIVE-930?page=all ] Julie Zhuo closed BEEHIVE-930: ------------------------------
Verified at rev290375 in the V1/final branch. It is working as expected now. > No longer have a clear compiler error message for the wrong usage of > redirect=true > ---------------------------------------------------------------------------------- > > Key: BEEHIVE-930 > URL: http://issues.apache.org/jira/browse/BEEHIVE-930 > Project: Beehive > Type: Bug > Components: NetUI > Reporter: Julie Zhuo > Assignee: Julie Zhuo > Priority: Minor > Attachments: Controller.jpf, Pg1.jsp > > When set redirect=true not together with either path or navigateTo, it used > to generate the following compiler error message, > Controller.java:39: Attribute "redirect" may only be present when attribute > "path" or "navigateTo" is present. protected Forward page1() > ^1 error > It now generates a information.java.util.MissingResourceException instead, > here is the detail, > Problem encountered during annotation processing; see stacktrace below for > more information.java.util.MissingResourceException: Can't find resource for > bundle java.util.PropertyResourceBundle, key > error.attr-dependency-not-found-3 at > java.util.ResourceBundle.getObject(ResourceBundle.java:326) at > java.util.ResourceBundle.getString(ResourceBundle.java:286) at > org.apache.beehive.netui.compiler.processor.BaseAnnotationProcessor.getResourceString(BaseAnnotationProcessor.java:159) > at > org.apache.beehive.netui.compiler.Diagnostics.addErrorArrayArgs(Diagnostics.java:88) > at > org.apache.beehive.netui.compiler.AnnotationGrammar.endCheck(AnnotationGrammar.java:408) > at > org.apache.beehive.netui.compiler.AnnotationGrammar.check(AnnotationGrammar.java:155) > at > org.apache.beehive.netui.compiler.AnnotationGrammar.check(AnnotationGrammar.java:138) > at > org.apache.beehive.netui.compiler.AnnotationGrammar.check(AnnotationGrammar.java:82) > at > org.apache.beehive.netui.compiler.FlowControllerChecker.checkMethod(FlowControllerChecker.java:550) > at > org.apache.beehive.netui.compiler.FlowControllerChecker.onCheckInternal(FlowControllerChecker.java:157) > at > org.apache.beehive.netui.compiler.FlowControllerChecker.onCheck(FlowControllerChecker.java:103) > at > org.apache.beehive.netui.compiler.BaseChecker.check(BaseChecker.java:44) > at > org.apache.beehive.netui.compiler.processor.BaseAnnotationProcessor.check(BaseAnnotationProcessor.java:66) > at > org.apache.beehive.netui.compiler.processor.TwoPhaseAnnotationProcessor.check(TwoPhaseAnnotationProcessor.java:125) > at > org.apache.beehive.netui.compiler.processor.TwoPhaseAnnotationProcessor.process(TwoPhaseAnnotationProcessor.java:86) > at > org.apache.beehive.netui.compiler.processor.BaseAnnotationProcessor.process(BaseAnnotationProcessor.java:106) > at > org.apache.beehive.netui.compiler.apt.BaseAnnotationProcessorFactory$DelegatingAnnotationProcessor.process(BaseAnnotationProcessorFactory.java:64) > at > com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60) > at com.sun.tools.apt.comp.Apt.main(Apt.java:454) at > com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:458) at > com.sun.tools.apt.main.Main.compile(Main.java:1075) at > com.sun.tools.apt.main.Main.compile(Main.java:938) at > com.sun.tools.apt.Main.processing(Main.java:95) at > com.sun.tools.apt.Main.process(Main.java:43) at > com.sun.tools.apt.Main.main(Main.java:34) > Just like the clear message that we used to have that tells you what exactly > wrong. :) > Will attach the pageflow for repro shortly. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
