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.ArithmeticException:by zero #2789

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

java.lang.ArithmeticException:by zero #2789

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

Comments

@Cici-Musse-Lee
Copy link

The file path is org.zkoss.util.Dates
java.lang.ArithmeticException:by zero
source code:

public static final long round(long time,int precision){
        return time - (time precision);
}

test code:

public void test_now_3_33()throws NoSuchFieldException,IllegalAccessException{

        int int0 = 0;
        org.zkoss.util.Dates.now(int0);
}

test results:

java.lang.ArithmeticException:by zero
at org.zkoss.util.Dates.round(Dates.java:62)
at org.zkoss.util.Dates.now(Dates.java:85)
at org.zkoss.util.Dates_Test.test_now_3_33(Dates_Test.java:604)

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