mndpsngh21 / gtalksms

Automatically exported from code.google.com/p/gtalksms
0 stars 0 forks source link

Error with java.util.Arrays.copyOf (Runtime exception: NoSuchMethodError) #257

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
in package com.googlecode.gtalksms.cmd.Cmd (2 calls of Arrays.copyOf) class and 
in package com.googlecode.gtalksms.cmd.HelpCmd (one call of Arrays.copyOf)

I have error with java.util.Arrays.copyOf (Runtime exception: 
NoSuchMethodError) on my phone, that's why i recommend to use next patches:

//mAlias = Arrays.copyOf(alias, alias.length, String[].class);
        mAlias = new String[alias.length];
        _i = 0;
        for (Object obj : alias) {
            mAlias[_i++] = obj.toString();  
        }

// String [] keys = Arrays.copyOf(objects, objects.length, String[].class);
        String[] keys = new String[objects.length];
        _i = 0;
        for (Object obj : objects) {
            keys[_i++] = obj.toString();    
        }

Phone model: Samsung Fascinate Galaxy S1 (SCH-I500 Android 2.1-update1)

Original issue reported on code.google.com by yocton...@gmail.com on 29 Feb 2012 at 6:54

GoogleCodeExporter commented 8 years ago
private int _i;

Original comment by yocton...@gmail.com on 29 Feb 2012 at 6:56

GoogleCodeExporter commented 8 years ago

Original comment by Florent....@gmail.com on 1 Apr 2012 at 12:07

GoogleCodeExporter commented 8 years ago
thx!

Original comment by yocton...@gmail.com on 2 Apr 2012 at 4:11

GoogleCodeExporter commented 8 years ago
Fixed in version 3.5

Original comment by Florent....@gmail.com on 2 Apr 2012 at 9:38