diff options
author | Josh Suereth <joshua.suereth@gmail.com> | 2012-09-12 10:46:45 -0400 |
---|---|---|
committer | Josh Suereth <joshua.suereth@gmail.com> | 2012-09-13 13:04:23 -0400 |
commit | 7861ed6886ecf827907a6b48f0628395f199f49b (patch) | |
tree | feae260b291c0fe1a819dd3109ac3f841ca90a39 /test/attic | |
parent | 76d4e9a8071f9e102106696664376b7f70622582 (diff) | |
download | scala-7861ed6886ecf827907a6b48f0628395f199f49b.tar.gz scala-7861ed6886ecf827907a6b48f0628395f199f49b.tar.bz2 scala-7861ed6886ecf827907a6b48f0628395f199f49b.zip |
Fixes SI-6259. Unable to use typeOf in super call of top-level object.
This works around the issue of the inability to use classOf for top-level object classes by inventing a new
anonymous class and instantiating it just to grab its class. Since the class is a nested type of the
top-level object it'll be in the same classloader unless some kind of evil behavior is afoot.
This patch should be undone if ever SI-2453 ever gets fixed, or we wind up with a direct way to grab
the class of an object.
Diffstat (limited to 'test/attic')
0 files changed, 0 insertions, 0 deletions