struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4175) An empty input file causes java.lang.StringIndexOutOfBoundsException:
Date Wed, 14 Aug 2013 12:07:49 GMT

    [ https://issues.apache.org/jira/browse/WW-4175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13739583#comment-13739583
] 

Lukasz Lenart commented on WW-4175:
-----------------------------------

I have marked the issue to be fixed in 2.5 but it would be better to base on Jasper as external
dependency and not copy/paste dependency as it is now.
                
> An empty input file causes java.lang.StringIndexOutOfBoundsException:
> ---------------------------------------------------------------------
>
>                 Key: WW-4175
>                 URL: https://issues.apache.org/jira/browse/WW-4175
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.3.15.1
>         Environment: Fedora 19 64 bit
>            Reporter: Leo
>             Fix For: 2.5
>
>
> I invoke JspC with an empty file as follows
> java org.apache.struts2.jasper.JspC a.jsp
> java.lang.StringIndexOutOfBoundsException: String index out of range: 0
> 	at java.lang.String.charAt(String.java:658)
> 	at org.apache.struts2.jasper.JspCompilationContext.<init>(JspCompilationContext.java:118)
> 	at org.apache.struts2.jasper.JspC.processFile(JspC.java:920)
> 	at org.apache.struts2.jasper.JspC.execute(JspC.java:1056)
> 	at org.apache.struts2.jasper.JspC.main(JspC.java:237)
> org.apache.struts2.jasper.JasperException: java.lang.StringIndexOutOfBoundsException:
String index out of range: 0

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message