pSpaces / jSpace

Programming with Spaces in Java
MIT License
17 stars 13 forks source link

Prevent silent failure in `size()` method #32

Closed Goju-Ryu closed 1 year ago

Goju-Ryu commented 1 year ago

Description To prevent a silent failure when calling the size() method on a RemoteSpace an exception is thrown instead.

Motivation This makes it easier to debug why a size method call on a Space that may or may not be a remote space fails to produce correct results. It also more clearly communicates that this is intended behavior and not due to misuse or concurrency issues.

albertolluch commented 1 year ago

Makes sense, thanks.