river-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter <j...@zeus.net.au>
Subject java 8 default interface methods
Date Tue, 29 Mar 2016 12:18:56 GMT
Some advise for those considering using interface default methods in service api.

It's a good solution for adding a method to a smart proxy, but isn't compatible with interfaces
used by a java reflective proxy (returned by your Exporter).

Here's why; the method call on the dynamically generated reflective proxy, is marshalled across
the network and invoked on the remote exported object, if the default method doesn't exist
on the remote interface, it causes a runtime exception.



Sent from my Samsung device.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message