Forums Register Login

Is RemoteDataImpl a real remote object?

+Pie Number of slices to send: Send
Does it need to generate RMI stub?If need ,then every public method in it should throw RemoteException.RemoteDataImpl has the same interface (DataInterface) as Data.The method in Data no need to throw RemoteException.Then how can I define DataInterface?
+Pie Number of slices to send: Send
RemoteDataImpl methods don't need to throw RemoteException, and neither do Data methods. It is perfectly legal for an interface implementation to throw fewer or narrower exceptions than the interface says. In general, it is perfectly legal for a subtype to narrow a type's throws clause.
- Peter
Your mother is a hamster and your father smells of tiny ads!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 526 times.
Similar Threads
How to throw RemoteException?
Final review. Planning to submit this weekend. Please comment.
Exceptions Handling
overridden method does not throw RemoteException
Design questions (with RMI)
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 08:54:16.