[foreign] RFR: NoSuchMethodException when symbol not in library
Sundararajan Athijegannathan
sundararajan.athijegannathan at oracle.com
Mon Jun 4 02:32:01 UTC 2018
Looks good.
* import order change in j.l.ClassLoader. Is that needed? The existing
one is alphabetical btw.
-Sundar
On 02/06/18, 9:29 AM, Henry Jen wrote:
> Hi,
>
> Please review the webrev[1] fixes following,
>
> - When a class has declaration of method that doesn’t exist in the library, current implementation will crash the VM by calling into address 0x0. Such scenario should have caused NoSuchMethodException in the Library::lookup. The patch fix this and added a test case.
>
> - A test case where the interface has a method not in declaration, this should not happen with jextract. Just added to make sure nothing bad such as crash VM can happen.
>
> - Fix when return type is Pointer<Void> but the layout is not void. This happens with undefined struct pointer.
>
> - A test case that validate empty struct is handled properly by jextract.
>
> Cheers,
> Henry
>
> [1] http://cr.openjdk.java.net/~henryjen/panama/foreign/missingSymbol/webrev/
>
>
More information about the panama-dev
mailing list