> On Nov 18, 2015, at 6:32 PM, David Holmes <david.hol...@oracle.com> wrote:
> 
> 
> I agree with Remi. "state" doesn't have to mean fields - there are numerous 
> existing examples in the JDK. Calling a method in a context that is invalid 
> is an illegal state to me. IllegalThreadStateException would also work. But 
> UnsupportedOperationException ... more of a stretch.

I also thought about IllegalThreadStateException.  It’s an old exception that 
will be repurposed if used for getCallerClass case and I think ISA would work.  
 FWIW - it extends IllegalArgumentException.

Mandy

Reply via email to