java.lang.ArithmeticException: / by zero
Aleksey Shipilev
shade at redhat.com
Fri Sep 22 09:25:29 UTC 2017
On 09/21/2017 07:30 PM, Dmitry Vyazelenko wrote:
> Hi,
>
> Using JOL 0.8 and 0.9-SNAPSHOT I get the following exception:
> Exception in thread "main" java.lang.ArithmeticException: / by zero
> at org.openjdk.jol.info.GraphLayout.toImage(GraphLayout.java:354)
> at DivisionByZero.main(DivisionByZero.java:8)
>
> From the following code:
> import org.openjdk.jol.info.GraphLayout;
> import java.io.IOException;
> public class DivisionByZero {
> public static void main(String[] args) throws IOException {
> int[] array = new int[10];
> GraphLayout.parseInstance(array).toImage("array.jpg");
> }
> }
Thanks for the bug report. Apparently I had the fix that accidentally resolved this:
https://bugs.openjdk.java.net/browse/CODETOOLS-7902036
-Aleksey
More information about the jol-dev
mailing list