Forum: JRuby anonymous classes

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
58c538d6f6e8fbf54779c5607e567bff?d=identicon&s=25 John B. (john_b)
on 2014-01-19 05:27
(Received via mailing list)
Is this anonymous class issue still present in recent versions of the
JVM/JRuby?

Does anyone have recommendations for how to go about auditing libraries
for
use of anonymous classes?

https://github.com/jruby/jruby/wiki/Troubleshootin...

Thanks,
John
486ca04f06d968004643ce5b47376ded?d=identicon&s=25 Keith B. (keith_b)
on 2014-01-19 18:07
(Received via mailing list)
Wow, very interesting.  Is it that Java doesnt GC any classes at all,
and this is pointing out that anonymous classes are also included in
this category?

Does JRuby implement code blocks passed to functions as Java classes?
How about lambdas/procs?

And is the reason theyre not garbage collected by default that its
expensive to determine whether or not theyre in use?

- Keith
This topic is locked and can not be replied to.