RFR (2nd): 8023524: Mechanism to dump generated lambda classes / log lambda code generation
henry.jen at oracle.com
Wed Sep 25 07:32:15 UTC 2013
On 09/24/2013 11:28 PM, Peter Levart wrote:
> On 09/25/2013 07:56 AM, Peter Levart wrote:
>> Just a thought. How does URLClassLoader do the class name -> path to
>> resource translation? Perhaps there's already some code that does this
>> correctly and in a platform-specific way (haven't looked)...
> sun.misc.ProxyGenerator has similar capability. It chooses to reject
> paths that are invalid for the underlying file system (using
> java.nio.file APIs)...
Thanks for the pointer, I asked similar question but didn't find this.
It seems to me simply failed if classname contains invalid characters
for the filesystem. I don't know enough to know whether that's
appropriate at this moment.
Our concern is that if it is possible to create file at bad places, and
do our best to save the generated class file for captured lambda. With
that, I guess current code is slightly better than previous one.
More information about the core-libs-dev