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
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.