Does anyone know some workaround?
Compiler error:
src\b4j\example\servercorsfilter.java:115: error: no suitable constructor found for FilterHolder(Class<CAP#1>)
FilterHolder fh = new FilterHolder((Class<? extends Filter>) Class.forName("org.eclipse.jetty.servlets.CrossOriginFilter"));
^
constructor FilterHolder.FilterHolder(Source) is not applicable
(argument mismatch; Class<CAP#1> cannot be converted to Source)
constructor FilterHolder.FilterHolder(Class<? extends jakarta.servlet.Filter>) is not applicable
(argument mismatch; Class<CAP#1> cannot be converted to Class<? extends jakarta.servlet.Filter>)
constructor FilterHolder.FilterHolder(jakarta.servlet.Filter) is not applicable
(argument mismatch; Class<CAP#1> cannot be converted to jakarta.servlet.Filter)
where CAP#1 is a fresh type-variable:
CAP#1 extends javax.servlet.Filter from capture of ? extends javax.servlet.Filter
Compiler error:
src\b4j\example\servercorsfilter.java:115: error: no suitable constructor found for FilterHolder(Class<CAP#1>)
FilterHolder fh = new FilterHolder((Class<? extends Filter>) Class.forName("org.eclipse.jetty.servlets.CrossOriginFilter"));
^
constructor FilterHolder.FilterHolder(Source) is not applicable
(argument mismatch; Class<CAP#1> cannot be converted to Source)
constructor FilterHolder.FilterHolder(Class<? extends jakarta.servlet.Filter>) is not applicable
(argument mismatch; Class<CAP#1> cannot be converted to Class<? extends jakarta.servlet.Filter>)
constructor FilterHolder.FilterHolder(jakarta.servlet.Filter) is not applicable
(argument mismatch; Class<CAP#1> cannot be converted to jakarta.servlet.Filter)
where CAP#1 is a fresh type-variable:
CAP#1 extends javax.servlet.Filter from capture of ? extends javax.servlet.Filter