This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Try to set Java indentation engine to file of other type than Java (for example HTML, JSP, ...) and try to type (for example '{', 'else', '<ENTER>'...). The behaviour is terrible - usually deleted line. Java indentation engine should refuse (in any way) to indent non-java files. The same for all language specific indentation engines.
Version: 'Dev' -> 3.2
*** Issue 10742 has been marked as a duplicate of this issue. ***
Fixed by adding Formatter.acceptSyntax(). The formatting is reverted to simple (input is written to output without any change) if the formatter is not suitable for the tokens.
Target milestone -> 3.2
Verified in development build 209 and releasse 3.2, build 38.
Resolved for 3.3.x or earlier, no new info since then -> closing.