Hi,
seems like I found an indentation bomb. Happend to try to format OdfManifestSaxHandler.java (Rev: 1869391) and always failed with OutOfMemoryError (tried up to 12G of heap space).
Original file is 6 kB. Output of formatter would be approximately 3 GB. Smaller test case which could be handled would be
Input:
class X {
*//** javadoc *//*
public void foo(Bar bar) {}
*//** javadoc *//*
public void foo(Bar bar) {}
*//** javadoc *//*
public void foo(Bar bar) {}
*//** javadoc *//*
public void foo(Bar bar) {}
}*/
Output (each # represents 100 space characters):
class X {
*//** javadoc *//*
public void foo(Bar bar) {}
*//** javadoc *//*
public void foo(Bar bar) {}
*//**
# * javadoc
# *//*
## public void foo(Bar bar) {}
## *//**
#### * javadoc
#### *//*
######## public void foo(Bar bar) {}
######## }*/
Hi,
seems like I found an indentation bomb. Happend to try to format OdfManifestSaxHandler.java (Rev: 1869391) and always failed with OutOfMemoryError (tried up to 12G of heap space).
Original file is 6 kB. Output of formatter would be approximately 3 GB. Smaller test case which could be handled would be
Input:
Output (each # represents 100 space characters):