You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added an extension method for org.w3c.dom.NodeList to provide a stream() method which works as expected. However, this approach breaks when trying to call stream() on instances of org.htmlunit.html.DomNodeList.
The issue is that DomNodeList extends both NodeList (which I've extended with stream()) and List, which already defines its own stream() method. As a result, the compiler fails with the following message: reference to stream is ambiguous
The text was updated successfully, but these errors were encountered:
I added an extension method for
org.w3c.dom.NodeList
to provide astream()
method which works as expected. However, this approach breaks when trying to callstream()
on instances oforg.htmlunit.html.DomNodeList
.The issue is that
DomNodeList
extends bothNodeList
(which I've extended withstream()
) andList
, which already defines its ownstream()
method. As a result, the compiler fails with the following message:reference to stream is ambiguous
The text was updated successfully, but these errors were encountered: