Community
Participate
Working Groups
Build Identifier: M20100211-1343 In class org.eclipse.jdt.internal.formatter.Scribe, there are several variants of method "createAlignment()" that allow calling the actual method with fewer arguments. One of them passes the wrong arguments to the next method, because arguments of the same type aren't ordered correctly: public Alignment createAlignment(String name, int mode, int count, int sourceRestart, boolean adjust){ return createAlignment(name, mode, Alignment.R_INNERMOST, count, sourceRestart, adjust); } The third parameter of the called method is not 'tieBreakRule' but 'count'. It seems that someone got confused here, which can easily happen as there are multiple int parameters. The correct method body would be: return createAlignment(name, mode, count, sourceRestart, this.formatter.preferences.continuation_indentation, adjust); Reproducible: Always
This method is not used so the best fix is simply to remove it.
Released as part of the fix for bug 332843.
Verified for 3.7M5 using code inspection.