Erikhht / flying-saucer

Automatically exported from code.google.com/p/flying-saucer
0 stars 0 forks source link

XHTMLPanel setDocument methods do not call overrides for setDocument(Document, String, NamespaceHandler) #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a subclass of XHTMLPanel that overrides setDocument(Document, String, 
NamespaceHandler).
2. Set a document on the subclass using setDocument(Document).

What is the expected output? What do you see instead?
The expectation is that the code will defer to setDocument(Document, String, 
NamespaceHandler) on the subclass, but fails to do so.  Instead XHTMLPanel 
calls super.setDocument(Document, String, NamespaceHandler), which ensures that 
the subclass method is never called.

In our particular case, we are performing some configuration of the supplied 
Namespacehandler, by wrapping it with a custom handler that delegate to the 
original when it needs to.

What version of the product are you using? On what operating system?
R8. On Windows Xp, Windows 7, Mac 10.5 and Mac 10.6.

Original issue reported on code.google.com by karlgsch...@gmail.com on 10 Aug 2010 at 8:16

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks.  Fixed in 6910e637.

Original comment by Peter.Br...@gmail.com on 15 Sep 2010 at 2:17