Skip to content

Allow default methods in MavenClassloader callbacks#1187

Closed
ivankelly wants to merge 2 commits into
apache:masterfrom
ivankelly:groovy-callback-default
Closed

Allow default methods in MavenClassloader callbacks#1187
ivankelly wants to merge 2 commits into
apache:masterfrom
ivankelly:groovy-callback-default

Conversation

@ivankelly
Copy link
Copy Markdown
Contributor

AsyncCallback.AddCallback has recently acquired a default method,
which breaks the assumption that there is only one method on these
callbacks. However, if does have a default method that calls the one
method. This patch takes advantage of that to allow us to use
AddCallback in tests.

AsyncCallback.AddCallback has recently acquired a default method,
which breaks the assumption that there is only one method on these
callbacks. However, if does have a default method that calls the one
method. This patch takes advantage of that to allow us to use
AddCallback in tests.
@ivankelly ivankelly self-assigned this Feb 20, 2018
@ivankelly
Copy link
Copy Markdown
Contributor Author

This is the last change needed before I push the yahoo BC test

Copy link
Copy Markdown
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great

@ivankelly
Copy link
Copy Markdown
Contributor Author

retest this please

failure was in BookieWriteLedgerTest/testLedgerCreateAdvWithLedgerIdInLoop in both cases, due to this being a very slow test and it running twice on the same machine at the same time :/ looking into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants