commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhongxian Gu (JIRA)" <j...@apache.org>
Subject [jira] Closed: (LANG-639) Compile error using ArrayUtils.add
Date Wed, 04 Aug 2010 05:33:17 GMT

     [ https://issues.apache.org/jira/browse/LANG-639?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Zhongxian Gu closed LANG-639.
-----------------------------

    Resolution: Invalid

Sorry about that. My bad. I found the problem. 

> Compile error using ArrayUtils.add
> ----------------------------------
>
>                 Key: LANG-639
>                 URL: https://issues.apache.org/jira/browse/LANG-639
>             Project: Commons Lang
>          Issue Type: Bug
>    Affects Versions: 2.5
>         Environment: jdk 6
>            Reporter: Zhongxian Gu
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Hi,
> Sorry for bothering. I've googled it but cannot find the solution. I am new to commons.lang.

> I tried to use ArrayUtils.add(arrString, aString); but got the following compile error.
(Here arrString is a type of String[], and aString type of String)
> incompatible types
> found   : java.lang.Object[]
> required: java.lang.String[]
> String[] sa = ArrayUtils.add(arrString, aString); 
> I've also tried other types. All have this compile error. I don't know why. 
> Thanks.
> Best
> Zhongxian

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


Mime
View raw message