RFR: 8264774: Implementation of Foreign Function and Memory API (Incubator) [v3]

Mandy Chung mchung at openjdk.java.net
Fri Apr 30 17:23:01 UTC 2021

On Fri, 30 Apr 2021 12:24:38 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

> I've added `@CS` in the interface methods too. I've also added a stronger test which creates method handles in one module (which doesn't have native access) and then calls them from another module (which does NOT have native access enabled), and make sure that all call fails as expected (e.g. that caller context is that of the lookup module).

> Surprisingly, CheckCSMs does NOT fail if both interface and implementation methods are `@CS` annotated - but if only interface is annotated, the test fails. This seems odd - since I can't find any logic in the test which check for overriding. Is the test accidentally passing?

I create JDK-8266383 and I will look into that.


PR: https://git.openjdk.java.net/jdk/pull/3699

More information about the core-libs-dev mailing list