OpenSolaris

Printable Version Enter a New Search
Bug ID 6364559
Synopsis jstyle -s erroneously complains about spaces instead of tabs on some block comments
State 10-Fix Delivered (Fix available in build)
Category:Subcategory consolidation:os-net-tools
Keywords
Responsible Engineer Danek Duvall
Reported Against
Duplicate Of
Introduced In solaris_nevada
Commit to Fix snv_33
Fixed In snv_33
Release Fixed solaris_nevada(snv_33)
Related Bugs 6241780 , 6358661
Submit Date 16-December-2005
Last Update Date 8-June-2007
Description
Run jstyle -s on the attached simple class (distilled from problem seen on usr/src/cmd/cmd-inet/usr.sadm/dhcpmgr/com/sun/dhcpmgr/client/MacroView.java) and you'll see:

{ferrari} /opt/onbld/bin/jstyle -s Test.java
Test.java: 8: spaces instead of tabs
Test.java: 9: spaces instead of tabs
Test.java: 10: spaces instead of tabs

Given the usage of 4-character indents as standard style in Java code, the block comment that's being complained about is correct.  With the fix of 6358257 to make "-s" the default, eliminating spurious noise from "-s" is important.
Work Around
N/A
Comments
N/A