On Thu, 2006-11-09 at 21:32 +0000, Chris Burdess wrote:
> Hi,
> 
> I have an error compiling Classpath HEAD with jikes:
> 
> Found 1 semantic error compiling
> "../../javax/swing/text/html/StyleSheet.java":
> 
>    106.   class CSSStyleSheetParserCallback
>                 ^-------------------------^
> *** Semantic Error: The abstract method "void
> startStatement(gnu.javax.swing.text.html.css.Selector selector);",
> inherited from type "gnu.javax.swing.text.html.css.CSSParserCallback",
> is not implemented in the non-abstract class
> "javax.swing.text.html.StyleSheet$CSSStyleSheetParserCallback".
> 
> Any ideas?

The last part of this patch wasn't committed:

2006-11-09  Roman Kennke  <[EMAIL PROTECTED]>

        * gnu/javax/swing/text/html/css/CSSParser.java
        (parseRuleset): Use new Selector class.
        (parseValue): Parse multiple anys, not only one.
        (main): Allow stylesheet be specified on the command line.
        Use new Selector class.
        * gnu/javax/swing/text/html/css/CSSParserCallback.java
        (startStatement): Use Selector class.
        * gnu/javax/swing/text/html/css/CSSScanner.java
        (readName): Actually read a character in the loop to avoid
        endless loop.
        * gnu/javax/swing/text/html/css/Length.java
        (getValue): Only multiply when we have a percentage value.
        * gnu/javax/swing/text/html/css/Selector.java:
        New class. Provides handling of CSS selectors.
        * javax/swing/text/html/StyleSheet.java
        (CSSStyle.PREC_AUTHOR_IMPORTANT): New constant field.
        (CSSStyle.PREC_AUTHOR_NORMAL): New constant field.
        (CSSStyle.PREC_NORM): New constant field.
        (CSSStyle.PREC_UA): New constant field.
        (CSSStyle.PREC_USER_IMPORTANT): New constant field.
        (CSSStyle.precedence): New field.
        (CSSStyle.priority): Removed.
        (CSSStyle.selector): New field.
        (CSSStyle.CSSStyle(int,Selector)): Initialize with Selector
        and precendence.
        (CSSStyle.compareTo): Adjusted to use the precedence and
        specificity of the selector.
        (CSSStyleSheetParserCallback.precedence): New field.
        (CSSStyleSheetParserCallback.selector): Removed.
        (CSSStyleSheetParserCallback.style): New field.
        (CSSStyleSheetParserCallback.CSSStyleSheetParserCallback):
        Initialize with precedence.
        (CSSStyleSheetParserCallback.declaration): Don't look up
        existing rule, simply create new one.
        (CSSStyleSheetParserCallback.endStatement): Append style
        to stylesheet.
        (CSSStyleSheetParserCallback.startStatement): Use new Selector
        class.
        (css): Changed to be ArrayList.
        (addRule): Create parser with author-normal precendence.
        (getRule): Fixed implementation.
        (loadRules): Create parser with UA precendence.
        (resolveStyle): Use Selector class for resolving and matching
        stylesheet rules.
        (translateHTMLToCSS): Added mappings for a couple of HTML
        attributes.

Roman?

Cheers,

Mark

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to