beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carlin Rogers (JIRA)" <j...@apache.org>
Subject [jira] Updated: (BEEHIVE-1158) An empty string value for validatorMerge in the @Jpf.Controller annotation causes a stack trace in the NetUI compiler
Date Thu, 16 Nov 2006 07:14:38 GMT
     [ http://issues.apache.org/jira/browse/BEEHIVE-1158?page=all ]

Carlin Rogers updated BEEHIVE-1158:
-----------------------------------

    Component/s: NetUI

Looks like there is a similar issue with strutsMerge property.

> An empty string value for validatorMerge in the @Jpf.Controller annotation causes a stack
trace in the NetUI compiler
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: BEEHIVE-1158
>                 URL: http://issues.apache.org/jira/browse/BEEHIVE-1158
>             Project: Beehive
>          Issue Type: Bug
>          Components: NetUI
>    Affects Versions: 1.0.1, 1.0.2, V.Next
>            Reporter: Carlin Rogers
>         Assigned To: Carlin Rogers
>            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(String.java:558)
> [apt]     at org.apache.beehive.netui.compiler.CompilerUtils.getFileRelativeToSourceFile(CompilerUtils.java:1198)
> [apt]     at org.apache.beehive.netui.compiler.genmodel.GenStrutsApp.getMergeFile(GenStrutsApp.java:460)
> [apt]     at org.apache.beehive.netui.compiler.genmodel.GenValidationModel.<init>(GenValidationModel.java:77)
> [apt]     at org.apache.beehive.netui.compiler.FlowControllerGenerator.generate(FlowControllerGenerator.java:61)
> [apt]     at org.apache.beehive.netui.compiler.processor.BaseCoreAnnotationProcessor.generate(BaseCoreAnnotationProcessor.java:100)
> [apt]     at org.apache.beehive.netui.compiler.processor.TwoPhaseCoreAnnotationProcessor.generate(TwoPhaseCoreAnnotationProcessor.java:175)
> [apt]     at org.apache.beehive.netui.compiler.processor.TwoPhaseCoreAnnotationProcessor.process(TwoPhaseCoreAnnotationProcessor.java:113)
> [apt]     at org.apache.beehive.netui.compiler.processor.BaseCoreAnnotationProcessor.process(BaseCoreAnnotationProcessor.java:107)
> [apt]     at org.apache.beehive.netui.compiler.apt.BaseAnnotationProcessorFactory$DelegatingAnnotationProcessor.process(BaseAnnotationProcessorFactory.java:75)
> [apt]     at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
> 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.
-
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

        

Mime
View raw message