checkstyle tool to enforce Sun/Oracle code standard on openJdk

Jonathan Gibbons jonathan.gibbons at
Fri Jan 2 17:41:27 UTC 2015

As attractive as the idea might be, it is not a slam dunk good idea to 
update the code base to a consistent style.

OpenJDK spans multiple versions, and patches get backported between 
versions. And there are always many projects "in-flight" at any time, at 
varying stages of development. Doing wholesale style-cleanup can cause 
undue difficulties when trying to port changesets or merge lines of 

I'm not saying it shouldn't be done; but if it is done, it should be 
done carefully, in a considered manner, at an appropriate time.   Also, 
we should consider the relative importance of the fixes.  For example, 
fixing lint and doclint warnings that might indicate problematic code 
and comments is more important that fixing errors in whitespace indentation.

-- Jon

On 12/30/2014 01:07 AM, Roman Ivanov wrote:
> Hi OpenJdk engineers,
> I am owner of Checkstyle project -   .
> We had Sun code standard configuration that allow developers
> write code in the same approach as authors of Java do.
> But a lot of time passed from time that configuration is
> introduced, and I am not completely sure that we do complete
> and accurate in coverage  of Sun Java Standard.
> This year we did complete code coverage for Google's style -
> Guava team already agreed on fixing problems
> and updating style guide to be more precise in some requirements -
> I have an idea to create similar page for Sun/Oracle style -
> Checkstyle already detected a lot of problem in javadoc on openjdk9 (base on change set: 11061:9ade71a206f9 ) -
> That report contains only problems of Javadoc but  it could be as full as report over Guava -
> Are you interested in such automatic validation of Sun/Oracle Code Standard ?
> To let openJDK comply their own code standard :), let automatically validate any contributions to project .
> thanks,
> Roman Ivanov

More information about the discuss mailing list