Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/336.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Jooq的addOrderBy()方法有什么问题?_Java_Jooq - Fatal编程技术网

Java Jooq的addOrderBy()方法有什么问题?

Java Jooq的addOrderBy()方法有什么问题?,java,jooq,Java,Jooq,我正在使用Jooq和下面的代码 SelectQuery<Record> selectQuery = transaction.selectQuery(); 但现在在上面的一行中,我得到了编译时异常 The method addOrderBy(Field<?>...) in the type SelectQuery<Record> is not applicable for the arguments (List<SortField<T>>

我正在使用Jooq和下面的代码

SelectQuery<Record> selectQuery = transaction.selectQuery();
但现在在上面的一行中,我得到了编译时异常

The method addOrderBy(Field<?>...) in the type SelectQuery<Record> is not applicable for the arguments (List<SortField<T>>) 
类型SelectQuery中的addOrderBy(字段…)方法不适用于参数(列表)

我做错了什么?

jOOQ API中有一个缺陷,如中所述。目前,必须调整
orderByValue1
列表的类型:

// Correct type:
List<SortField<?>> orderByValue1;

// Wrong type
List<SortField<T>> orderByValue1;
//正确的类型:

Listjooqapi中有一个缺陷,如中所述。目前,必须调整
orderByValue1
列表的类型:

// Correct type:
List<SortField<?>> orderByValue1;

// Wrong type
List<SortField<T>> orderByValue1;
//正确的类型:
列表
// Correct type:
List<SortField<?>> orderByValue1;

// Wrong type
List<SortField<T>> orderByValue1;