[ http://issues.apache.org/jira/browse/BEEHIVE-958?page=all ]
Alejandro Ramirez reassigned BEEHIVE-958:
-----------------------------------------
Assign To: Julie Zhuo (was: Alejandro Ramirez)
please verify
> StringIndexOutOfBoundsException when inheriting a Forward or SimpleAction
> with path=""
> --------------------------------------------------------------------------------------
>
> Key: BEEHIVE-958
> URL: http://issues.apache.org/jira/browse/BEEHIVE-958
> Project: Beehive
> Type: Bug
> Components: NetUI
> Versions: V1
> Reporter: Rich Feit
> Assignee: Julie Zhuo
> Priority: Minor
> Fix For: 1.1
>
> Repro:
> - Create a page flow controller class with the following simple action
> annotation:
> @Jpf.SimpleAction(name="foo", path="")
>
> - Create another page flow controller class that extends the first one.
> - Compile them both.
> EXPECTED: compiles fine
> ACTUAL: get the following stacktrace:
> java.lang.StringIndexOutOfBoundsException: String index out of range: 0
> at java.lang.String.charAt(String.java:558)
> at
> org.apache.beehive.netui.compiler.FlowControllerChecker.checkRelativePath(FlowControllerChecker.java:455)
> at
> org.apache.beehive.netui.compiler.FlowControllerChecker.checkInheritedRelativePaths(FlowControllerChecker.java:351)
> at
> org.apache.beehive.netui.compiler.FlowControllerChecker.startCheckClass(FlowControllerChecker.java:324)
> at
> org.apache.beehive.netui.compiler.FlowControllerChecker.onCheckInternal(FlowControllerChecker.java:127)
> at
> org.apache.beehive.netui.compiler.FlowControllerChecker.onCheck(FlowControllerChecker.java:102)
> 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:450)
> 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)
> I already have a fix for this -- just entering it for tracking.
--
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