struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-3812) UnsupportedOperation exception in org.apache.struts2.views.util.DefaultUrlHelper
Date Sat, 12 May 2012 06:01:51 GMT

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

Hudson commented on WW-3812:
----------------------------

Integrated in Struts2 #471 (See [https://builds.apache.org/job/Struts2/471/])
    WW-3812 wraps Arrays.asList with new ArrayList() to allow add() operation (Revision 1337447)

     Result = SUCCESS
lukaszlenart : 
Files : 
* /struts/struts2/trunk/core/src/main/java/org/apache/struts2/views/util/DefaultUrlHelper.java

                
> UnsupportedOperation exception in org.apache.struts2.views.util.DefaultUrlHelper
> --------------------------------------------------------------------------------
>
>                 Key: WW-3812
>                 URL: https://issues.apache.org/jira/browse/WW-3812
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.3.3
>         Environment: org.apache.struts2.views.util.DefaultUrlHelper line 311/312
>            Reporter: Eric Chauvin
>            Assignee: Lukasz Lenart
>            Priority: Critical
>             Fix For: 2.3.4
>
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> Arrays.asList return one implementation of List which cannot handle add operation
> commit : 1303298
> {code:java}
> 311 : List<String> paramList = Arrays.asList(currentParamValues);
> 312 : paramList.add(translatedParamValue);
> {code}
> commit : 1302803
> {code:java}
> 311 : List<String> paramList = new ArrayList(Arrays.asList(currentParamValues));
> 312 : paramList.add(translatedParamValue);
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message