[PATCH] Pretty printing for loops

Tobias Werth Tobias.Werth at fau.de
Fri Dec 5 08:45:57 UTC 2014


(if this is not the correct mailing list to submit those patches, please
tell me which one to use instead)

I stumbled upon a bug in the javac pretty printer. It misses a null
check while pretty printing for loops causing to produce invalid code.

The attached patch contains a fix including a test that fails before and
works after applying the patch.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: pp_forloop.patch
Type: text/x-patch
Size: 5543 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20141205/dc259270/pp_forloop-0001.patch>

More information about the compiler-dev mailing list