Summary: | formatter doesn't handle strictfp correctly. | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Martijn Kruithof <eclipse> |
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | bernard |
Version: | 3.0 | ||
Target Milestone: | 3.1 M1 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Martijn Kruithof
2004-07-11 16:16:48 EDT
In package org.eclipse.jdt.internal.formatter; ... public class Scribe { ... public void printModifiers() { ... switch(this.currentToken) { case TerminalTokens.TokenNamepublic : case TerminalTokens.TokenNameprotected : case TerminalTokens.TokenNameprivate : case TerminalTokens.TokenNameabstract : case TerminalTokens.TokenNamestatic : case TerminalTokens.TokenNamefinal : case TerminalTokens.TokenNametransient : case TerminalTokens.TokenNamevolatile : case TerminalTokens.TokenNamesynchronized : case TerminalTokens.TokenNamenative : case TerminalTokens.TokenNamestrictfp : The latter one is missing, because of this declarations using the strictfp modifier are not treated correctly. Adding the strictfp token fixes this problem I will add it. Fixed and released in HEAD. Regression test added. Philippe, I think this is a good candidate for 3.0.1. |