Project: JDT
Bug 46773 [formatting][templates] template formatting fails if produced code is not valid java syntax
Reported: 2003-11-17 09:30:54 | Status: verified fixed

I200311050952 using the following template ----------------------------- public ${enclosing_type}(${arguments}) { ${cursor} } ----------------------------- I get the following error: !ENTRY org.eclipse.jdt.ui 4 10001 Nov 17, 2003 14:26:29.847 !MESSAGE formatter failed to format (no edit returned). Will use unformatted text instead. kind: 0, string: public SetViewer(arguments) { /*${cursor}*/ } and the open and close brackets do not show up in the correct columns ( i.e don't get formatted).

Files changed in fix:
org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaFormatter.java