beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julie Zhuo (JIRA)" <>
Subject [jira] Closed: (BEEHIVE-1158) An empty string value for validatorMerge in the @Jpf.Controller annotation causes a stack trace in the NetUI compiler
Date Wed, 27 Jun 2007 19:37:26 GMT


Julie Zhuo closed BEEHIVE-1158.

Close. See Russ' comments.

> An empty string value for validatorMerge in the @Jpf.Controller annotation causes a stack
trace in the NetUI compiler
> ---------------------------------------------------------------------------------------------------------------------
>                 Key: BEEHIVE-1158
>                 URL:
>             Project: Beehive
>          Issue Type: Bug
>          Components: NetUI
>    Affects Versions: 1.0.1, 1.0.2, V.Next
>            Reporter: Carlin Rogers
>            Assignee: Julie Zhuo
>            Priority: Minor
>             Fix For: V.Next
> An empty string value for the validatorMerge property in the @Jpf.Controller annotation
causes the following stack trace during the page flow compile.
> [apt] java.lang.StringIndexOutOfBoundsException: String index out of range: 0
> [apt]     at java.lang.String.charAt(
> [apt]     at org.apache.beehive.netui.compiler.CompilerUtils.getFileRelativeToSourceFile(
> [apt]     at org.apache.beehive.netui.compiler.genmodel.GenStrutsApp.getMergeFile(
> [apt]     at org.apache.beehive.netui.compiler.genmodel.GenValidationModel.<init>(
> [apt]     at org.apache.beehive.netui.compiler.FlowControllerGenerator.generate(
> [apt]     at org.apache.beehive.netui.compiler.processor.BaseCoreAnnotationProcessor.generate(
> [apt]     at org.apache.beehive.netui.compiler.processor.TwoPhaseCoreAnnotationProcessor.generate(
> [apt]     at org.apache.beehive.netui.compiler.processor.TwoPhaseCoreAnnotationProcessor.process(
> [apt]     at org.apache.beehive.netui.compiler.processor.BaseCoreAnnotationProcessor.process(
> [apt]     at org.apache.beehive.netui.compiler.apt.BaseAnnotationProcessorFactory$DelegatingAnnotationProcessor.process(
> [apt]     at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(
> We need to place a check in the compiler to ensure that the value is not an empty string.
I can make this fix and submit a test case as well.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message