Errors on build

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Fri May 31 21:04:24 UTC 2024


What JDK are you using to build?

Thanks
Maurizio

On 31/05/2024 22:00, Nir Lisker wrote:
> Hi,
>
> In Utils::methodTypeFor(Type.Function type), line 275, I get a 
> compilation error:
>
>  no suitable method found for methodType(Class
> <CAP#1>,List<Class<CAP#2>>)
>   MethodType.methodType(carrierFor(type.returnType()), 
> type.argumentTypes().stream().map(Utils::carrierFor).toList());
>                           ^
>     method MethodType.methodType(Class<?>,Class<?>[]) is not applicable
>       (argument mismatch; List<Class<CAP#3>> cannot be converted to 
> Class<?>[])
>     method MethodType.methodType(Class<?>,List<Class<?>>) is not 
> applicable
>       (argument mismatch; List<Class<CAP#3>> cannot be converted to 
> List<Class<?>>)
>     method MethodType.methodType(Class<?>,Class<?>,Class<?>...) is not 
> applicable
>       (argument mismatch; List<Class<CAP#3>> cannot be converted to 
> Class<?>)
>     method MethodType.methodType(Class<?>,Class<?>) is not applicable
>       (argument mismatch; List<Class<CAP#3>> cannot be converted to 
> Class<?>)
>     method MethodType.methodType(Class<?>,MethodType) is not applicable
>       (argument mismatch; List<Class<CAP#3>> cannot be converted to 
> MethodType)
>   where CAP#1,CAP#2,CAP#3 are fresh type-variables:
>     CAP#1 extends Object from capture of ?
>     CAP#2 extends Object from capture of ?
>     CAP#3 extends Object from capture of ?
>
> There is a problem with type inference. Eclipse's ECJ also has this 
> problem.
>
> Another one is in HeaderFileBuilder line 326: Cannot infer type 
> argument(s) for <R> map(Function<? super T,? extends R>).
>
> I'm using the master branch commit 
> ID d87ddec91bd5aceaa3882f3bd6d75b18d77e9842 in case this is the wrong 
> branch. Maybe I have some local configuration problem.
>
> - Nir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jextract-dev/attachments/20240531/eb4dc46b/attachment.htm>


More information about the jextract-dev mailing list