I am currently migrating Coherence projects to 12.2.1 (from 12.1.2.x) and the code is not compiling anymore.
I see that a few Coherence types were changed to generics and this introduces type checking errors or type mismatches.
The following Live Event interceptor code used to work:
public abstract class MyInterceptor implements EventInterceptor<EntryEvent> {
public void onEvent(EntryEvent evt) {
for(BinaryEntry be : evt.getEntrySet()) {
. . .
}
}
}
Now it seems to have to be changed to:
public abstract class MyInterceptor implements EventInterceptor<EntryEvent<?, ?>> {
public void onEvent(EntryEvent evt) {
for(BinaryEntry be : ((Set<BinaryEntry<?, ?>>)) evt.getEntrySet()) {
. . .
}
}
}
Any more elegant way to adjust this code?
Is this documented somewhere in Coherence 12.2.1 release notes?