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
{{ message }}
Repository navigation
Retype the parser hooks that take SinkEventAttributeSet, then drop the deprecated class #1074
Follow-up to #1072 / #1073, which moves SinkEventAttributeSet to doxia-sink-api and leaves a deprecated subclass in org.apache.maven.doxia.sink.impl.
That deprecated class cannot be removed while these protected hooks in doxia-core still take or return it, so the deprecation cannot be fulfilled within 2.x:
They were left alone in #1073 on purpose. Retyping them is not a loud break but a silent one: a subclass compiled against the old signature stops overriding the method and is simply never called again, with no error at build or run time. Adding overloads does not help either, since the framework calls these, and it can only call one of them.
Proposal
For the next major version, retype them to take the SinkEventAttributes interface rather than a concrete attribute set. A parser hook has no reason to require the implementation type; everything these methods do with the argument is available on the interface. Then org.apache.maven.doxia.sink.impl.SinkEventAttributeSet has no remaining references and can go.
Worth doing in that order, and in a release where a signature change on protected extension points is expected, rather than trying to sneak either half into 2.x.
Activity
Warn parser subclasses before the SinkEventAttributeSet hooks are ret…