[Isolate-interest] JSR-121 aggregates and links (Strawman 9)
Godmar Back
gback@cs.vt.edu
Wed, 29 Sep 2004 11:42:12 -0400
>
> > Finally, if you have time/energy, I'd like to hear the complete
> > rationale for avoiding checked exceptions in this last draft. In what
> > way do they strengthen the contract to the user?
>
> Think about somehow putting a checked exception onto "new", then run that
> thinking backwards.
>
As for example in "new ClosedLinkException()"? How do I run this
thinking backwards? Could you give an example that shows the
differences between these two approaches?
> There is no support for enums in J2ME.
>
I didn't know that. What is the reason for that?
JSR-201 doesn't mention that restriction. (in 2.2, they say "All
versions of the Java platform")
> StatusMessage.getExitStatus() returns the integer corresponding to an isolate
> exiting.
Ah, I overlooked that.
I would use different Java types for different StatusMessages
(STARTING, etc.) because it allows better OO programming, such as the
use of visitors. It also gets rid of your need to define what
getExitStatus() should return if getType() returns STARTING.
- Godmar
>
> The EG is split between various forms of isolate death causing or not causing
> death of other isolates or complete destruction of the aggregate, so we
> decided not to dictate this.
>
> -Pete
>