summaryrefslogtreecommitdiff
path: root/src/scalap
diff options
context:
space:
mode:
authorNada Amin <namin@alum.mit.edu>2012-09-28 01:32:44 +0200
committerNada Amin <namin@alum.mit.edu>2012-09-28 01:45:25 +0200
commitddcf5cea60245ee8d41e248feabe901df609bcf4 (patch)
tree786c51850a2953a1694cc90d7aed49f23179ddb1 /src/scalap
parentae1871bb1c0480e5b055b83f2db08f49ef3c30cf (diff)
downloadscala-ddcf5cea60245ee8d41e248feabe901df609bcf4.tar.gz
scala-ddcf5cea60245ee8d41e248feabe901df609bcf4.tar.bz2
scala-ddcf5cea60245ee8d41e248feabe901df609bcf4.zip
Fix class loader issues in instrumentation tests.
The ASM ClassWriter uses a wimpy class loader when computing common superclasses. This could cause a ClassNotFoundException in the transform method (at reader.accept). This exception gets swallowed, resulting in a class that should be instrumented to silently not be. The fix is to override getCommonSuperClass to use the correct class loader. Trivia: This bug was discovered while 'stress-testing' this instrumentation scheme on the Coursera students, to check that they implement one method in terms of another in the assignment.
Diffstat (limited to 'src/scalap')
0 files changed, 0 insertions, 0 deletions