On Oct 25, 2017, at 11:11 PM, David Holmes <[email protected]> wrote: > >> Please don't throw IAE that case. I don't want to bikeshed exception types, >> but I think we have a strong precedent for using ICCE when encountering >> a questionable classfile configuration (one that shouldn't have come out of >> javac). Note also the ICCE <: VME, so it just gets passed through. > > You must have missed Dan's update regarding access checks. He's already > proposed to throw IAE - and I've implemented it. :) > > http://cr.openjdk.java.net/~dlsmith/nestmates.html > <http://cr.openjdk.java.net/~dlsmith/nestmates.html> >
Actually, IllegalAccessError is not too terrible, although I'd prefer ICCE for reasons stated. I read IAE as "IllegalArgumentException", which explains the warmth of my response. Why did I think you meant IllegalArgumentException? *That* is unexplainable. — John
