[Isolate-interest] JSR-121 aggregates and links (Strawman 9)

Godmar Back gback@cs.vt.edu
Tue, 28 Sep 2004 11:45:20 -0400


One comment that came to mind: ExitReason and Type could probably be
defined as enums in this formulation:
public enum ExitReason { IMPLICIT_EXIT, OTHER_EXIT, .... };

Related: is there a way to get the (integer) exit code, if so, what is
it; if not, what's the rationale for not providing one?

More related: there seems to be no way to detach an isolate (a
decision I agree with); is the rationale for that described somewhere?

 - Godmar


>    public final class ExitReason {
>    private ExitReason() {}
>        public final ExitReason IMPLICIT_EXIT = new ExitReason();
>        public final ExitReason OTHER_EXIT = new ExitReason();
>        public final ExitReason OTHER_HALT = new ExitReason();
>        public final ExitReason SELF_EXIT = new ExitReason();
>        public final ExitReason SELF_HALT = new ExitReason();
>        public final ExitReason UNCAUGHT_EXCEPTION = new ExitReason();
>    }
>    public final class Type {
>        private Type() {}
>        public final Type  STARTING = new Type();
>        public final Type  EXITING = new Type();
>        public final Type  TERMINATED = new Type();
>    }