Feedback on LW1 EAR

mandy chung mandy.chung at oracle.com
Thu Aug 23 14:55:46 UTC 2018


Uberto, thanks for reporting this.  Thanks Remi for looking into it.

I file https://bugs.openjdk.java.net/browse/JDK-8209896 for this issue.
I'm OOO this week and will look into it when I return next week.

Mandy

On 8/23/18 5:54 AM, Remi Forax wrote:
> Hi Uberto,
> 
>> Hi Srikanth,
>>
>> thanks for your illuminating reply.
>>
>> Introducing ValueTypes on others projects I found another curious issue,
>> seems more a javac issue but not sure.
>> concurrentHashMap.computeIfPresent (and the other similar methods) raise an
>> error if the map is inside a ValueType. Other map methods (like the
>> commented code) works fine.
> 
> It's more a bug for Mandy, i.e. it's a JDK issue and not a compiler issue.
> When creating the lambda proxy, the object that will implement the functional > interface and redirect the call to the lambda body,
> we have forgotten the case where the lambda body is itself declared in a value type.
> 
> A simple code like below reproduces the issue.
> 
> public __ByValue class LambdaDesugar {
>    private final int value;
>    public LambdaDesugar() { this.value = 0; }
>    
>    public static void main(String[] args) {
>      Runnable r = () -> {
>        System.out.println("hello lambda inside a value type");
>      };
>      r.run();
>    }
> }
> 
> cheers,
> Rémi



More information about the valhalla-dev mailing list