logo       
Google Custom Search

Related Msgs: audio.musicbrai...    enbd.general/20...    ietf.idr/2002-0...    java.ant-contri...    gnu.make.genera...    qplus.devel/200...    video.freevo.cv...    os.netbsd.ports...    yellowdog.gener...    xfree86.cvs/200...    search.nutch.us...    freedesktop.xse...    programming.swi...    capabilities.ge...    telephony.pbx.a...    mail.sylpheed.c...    db.firebase.por...    boot-loaders.u-...    recreation.radi...    netbsd.bugs/200...    web.zope.plone....    user-groups.lin...   

[jira] Updated: (XERCESJ-317) Make the final methods in HTML DOM not finals: msg#00040

Subject: [jira] Updated: (XERCESJ-317) Make the final methods in HTML DOM not finals.
     [ http://issues.apache.org/jira/browse/XERCESJ-317?page=all ]

Michael Glavassevich updated XERCESJ-317:
-----------------------------------------

    Bugzilla Id:   (was: 9095)
      Component: DOM (HTML)
                     (was: DOM (XML))
    Description: 
For examples these 2 methods are final in HTMLElementImpl 
public final NodeList getElementsByTagName( String tagName )
public final NodeList getElementsByTagNameNS( String namespaceURI,
                                                  String localName )

By marking these methods, I can't over-ride these methods when I need to. And I 
need to do that if I need to integrate the DOM with javaScript engine (Rhino), 
since NodeList are not "Scriptable" (Rhino). If these methods are not final, I 
can inherit these methods and put a wrapper around the NodeList of the return 
value.

  was:
For examples these 2 methods are final in HTMLElementImpl 
public final NodeList getElementsByTagName( String tagName )
public final NodeList getElementsByTagNameNS( String namespaceURI,
                                                  String localName )

By marking these methods, I can't over-ride these methods when I need to. And I 
need to do that if I need to integrate the DOM with javaScript engine (Rhino), 
since NodeList are not "Scriptable" (Rhino). If these methods are not final, I 
can inherit these methods and put a wrapper around the NodeList of the return 
value.

    Environment: 
Operating System: Other
Platform: Other

  was:
Operating System: Other
Platform: Other

      Assign To:     (was: Xerces-J Developers Mailing List)
       Priority: Blocker

> Make the final methods in HTML DOM not finals.
> ----------------------------------------------
>
>          Key: XERCESJ-317
>          URL: http://issues.apache.org/jira/browse/XERCESJ-317
>      Project: Xerces2-J
>         Type: Bug
>   Components: DOM (HTML)
>     Versions: 2.0.1
>  Environment: Operating System: Other
> Platform: Other
>     Reporter: sc
>     Priority: Blocker

>
> For examples these 2 methods are final in HTMLElementImpl 
> public final NodeList getElementsByTagName( String tagName )
> public final NodeList getElementsByTagNameNS( String namespaceURI,
>                                                 String localName )
> By marking these methods, I can't over-ride these methods when I need to. And 
> I 
> need to do that if I need to integrate the DOM with javaScript engine 
> (Rhino), 
> since NodeList are not "Scriptable" (Rhino). If these methods are not final, 
> I 
> can inherit these methods and put a wrapper around the NodeList of the return 
> value.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>