Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.ArraylndexOutOfBoundsException:Index -409181510 out of bounds for length 1at org.zkoss.lang.Strings.join(Strings.java:744) #2787

Open
Cici-Musse-Lee opened this issue May 31, 2022 · 0 comments

Comments

@Cici-Musse-Lee
Copy link

The file path is org.zkoss.lang.String
java.lang.ArraylndexOutOfBoundsException:Index -409181510 out of bounds for length 1at org.zkoss.lang.Strings.join(Strings.java:744)

source code:

public static final <T>String join(T[]array,char separator,int startIndex,int endIndex{
        if (array =null)
                return null;
        final int items endIndex startIndex;
        if (items <=0)
                return EMPTY;

        final StringBuilder buf new StringBuilder(items 16);
        for (int i startIndex;i<endIndex;i++){
        if (i>startIndex){
                buf.append (separator);
                }
        buf.append (array[i]);
        }
        return buf.tostring();
}

test code:

public void test_join_1_51()throws NoSuchFieldException,IllegalAccessException{

        char char1 ='\'';

        java.lang.Object object4 = new com.kawa.familytree.main.bs.PersonalDAO();
        java.lang.Object[]objectArray0 =  {object4};
        int int2=-409181510;
        int int3=781688062;
        org.zkoss.lang.Strings.join(objectArray0,charl,int2,int3);
}

test results:

java.lang.ArraylndexOutOfBoundsException:Index -409181510 out of bounds for length 1at org.zkoss.lang.Strings.join(Strings.java:744)
at org.zkoss.lang.Strings_Test.test_join_1_51(Strings_Test.java:650)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant