Reified Lambda Functions
Rémi Forax
forax at univ-mlv.fr
Thu Jan 7 06:49:10 PST 2010
Le 07/01/2010 14:52, Zdenek Tronicek a écrit :
> Rémi Forax napsal(a):
>
>> No, anonymous classes are classes that aren't stored in a classloader
>> cache.
>> So they can be unloaded if no instance of an anonymous class exist without
>> having to null out a classloader.
>>
>>
> Where did you find this? The spec, section 12.7 says:
>
> "A class or interface may be unloaded if and only if its defining class
> loader may be reclaimed by the garbage collector as discussed in §12.6."
>
> Z.
>
Here,
http://blogs.sun.com/jrose/entry/anonymous_classes_in_the_vm
and here:
http://hg.openjdk.java.net/jdk7/jdk7/jdk/file/e4dcfb35ee68/src/share/classes/sun/dyn/anon/AnonymousClassLoader.java
It was an attempt of JSR 292 API/implementation before concept of method
handle was introduced.
There is lot of chance that this implementation will be remove before
the release of jdk7.
Rémi
More information about the lambda-dev
mailing list