Error: undefined identifier ArrayWrapperString

JohnnyK johnnykinsey at comcast.net
Thu Feb 13 07:45:56 PST 2014


On Friday, 7 February 2014 at 20:39:40 UTC, Jacob Carlborg wrote:
> On 2014-02-07 19:55, JohnnyK wrote:
>> I am getting the following error when trying to use the 
>> clipboard with
>> DWT.  Error: undefined identifier ArrayWrapperString.  Does 
>> anyone know
>> what I need to import to get this class to work? Below is what 
>> I am
>> currently importing.
>
> It's defined in "java.lang.wrappers".
>
>> I looked at the clipboard snippet94 example and I just don't 
>> know what I
>> am missing to get ArrayWrapperString.  Also I cannot find this 
>> class
>> online in any of the SWT documentation.
>
> It's not part of SWT. It's a utility typed added by DWT. It's 
> has most likely something to do with Java supporting boxing and 
> unboxing of primitive types and this type tries to do something 
> similar.

Thanks Jacob,  I just moved the import java.lang.all; down to 
just before where I needed the method since that is the only 
method I needed.  import java.lang.all; indexOf method conflicts 
with the std.String library indexOf method.


More information about the Digitalmars-d-dwt mailing list