Request for explicit exception types for 'code size' related exceptions

Prashant Deva <[email protected]> Fri, 27 Jan 2012 18:53:53 -0800
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <CAEg0NFafsm_b5UMQ3d9y3GFpFowPi7ENfOCm=PGoYgJpkDNeFw@mail.gmail.com>
I have added details for this to the asm bug #316319.

Currently the ClassWriter and MethodWriter classes throw runtime exceptions
if the constant pool or code size is too large.
These exceptions are plain RuntimeExceptions with no explicit type.

This is very type unsafe and frankly an ugly way of writing the handlers.

I propose adding explicitly typed Exceptions for both these cases.
The exceptions still subclass RuntimeException so they are not checked
exceptions and don't change existing callers of these methods.

As mentioned before, I have described the exact changes in the asm bug
tracker:
http://forge.ow2.org/tracker/index.php?func=detail&aid=316319&group_id=23&atid=100023


Prashant
message-footer.txt (text/plain, 238 B)
-- 
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws