Ben Liblit
aaf66705e1
Fix 65 Eclipse warnings about unused exception parameters
...
In the cases addressed here, the caught exception was being "handled"
by throwing some new exception. Instead of discarding the old
exception, pass it to the new exception's constructor to indicate the
original cause of the newly-created exception. This practice, called
"exception chaining", can often be useful in debugging.
2017-03-20 00:44:39 -05:00
Julian Dolby
d24519e974
cross-cutting changes to make more of WALA runnable with TeaVM. The biggest change is refactoring to AnalysisCache and friends; since TeaVM does not support SoftReference, I needed to add a layer of interfaces so that I can use a more simpleminded caching implementation for TeaVM. There are other changes to Module and friends to break connections with File and URL, which also cause TeaVM grief. I also organized imports in many places to remove unused types that caused trouble.
2017-02-02 20:33:27 -05:00
Julian Dolby
3bb1f12c18
do not write bogus local variable table entries that refer to slots
...
greater than the max local. This causes the verifier to complain. This
can happen when transforming a class that originally contains local
names for stack slots that are never used. When the new code is
written, a correct max locals is calculated, and then these unused local
table entries trigger errors.
2013-11-06 09:34:00 -05:00
sjfink
d175c8e0e3
misc. hardening and bug fixes
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3329 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-03-17 16:01:43 +00:00
sjfink
1f67550d3c
add more checks for IllegalArgumentExceptions
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1629 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-08-17 21:09:49 +00:00
sjfink
0119a40be4
make many fields final
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1233 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-06-01 21:39:03 +00:00
sjfink
60058dec8b
add @Overrides annotations and nuke unnecessary casts
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1198 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-05-30 15:42:59 +00:00
sjfink
3f1d0c4f58
harden against invalid arguments. annotate some methods as throws NPE.
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1097 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-05-08 21:23:06 +00:00
sjfink
08e6f673ba
misc. bug fixes and annotations
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@578 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-01-15 18:31:14 +00:00
sjfink
68270cad6f
mv stuff to trunk
...
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@492 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2006-11-22 17:45:24 +00:00