JDK-4826032 : Possible typos in standard Javadoc stylesheet
  • Type: Bug
  • Component: tools
  • Sub-Component: javadoc(tool)
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux_redhat_7.2
  • CPU: x86
  • Submitted: 2003-03-01
  • Updated: 2014-05-05
  • Resolved: 2003-03-01
Related Reports
Duplicate :  
Description
After using a Javadoc documentation directory built by JDK 1.3.1 in a Mozilla dev build, I noticed that it was printing some warnings to console about parsing the stylesheet, specifically problems with parsing font-size. I traced them back to some suspicious lines in j2se/src/share/classes/com/sun/tools/doclets/standard/StylesheetWriter.java (I have 1.4.0 sources):

println(".FrameTitleFont   { font-size: 10pts; font-family: Helvetica, Arial, san-serif }");
println(".FrameHeadingFont { font-size: 10pts; font-family: Helvetica, Arial, san-serif }");
println(".FrameItemFont    { font-size: 10pts; font-family: Helvetica, Arial, san-serif }");

1. Probably should s/10pts/10pt/g

2. and s/san-serif/sans-serif/g

I am not sure how best to confirm that a CSS stylesheet is valid and functioning correctly, but this does *appear* to be a bug. Note that the commented-out example line looks better:

print("/* "); 
print(".FrameItemFont  { font-size: 10pt; font-family: ");
print("Helvetica, Arial, sans-serif }"); println(" */");

Hopefully someone more knowledgeable can take this as a cue to check the standard stylesheet for these and other errors.
###@###.### 2003-02-28

Comments
EVALUATION This has been fixed in 1.4.2 (mantis) as bug 4417174: Creates invalid stylesheet.css file (font-size: normal) Closing as a duplicate. ###@###.### 2003-02-28
28-02-2003