Affects: \


Error:(138, 37) java: 不兼容的类型: org.springframework.beans.support.PropertyComparator无法转换为java.util.Comparator<? super capture#1, 共 ?>

public static void sort(List<?> source, SortDefinition sortDefinition) throws BeansException { if (StringUtils.hasText(sortDefinition.getProperty())) { source.sort(new PropertyComparator<>(sortDefinition)); } }

Comment From: 13567436138

> Task :spring-beans:compileGroovy
D:\opensource\sourceCode-remarks\spring-framework\spring-beans\src\main\java\org\springframework\beans\support\PropertyComparator.java:138: ����: �����ݵ�����: PropertyComparator<CAP#1>�޷�ת��ΪComparator<? super CAP#1>
            source.sort(new PropertyComparator<>(sortDefinition));
                        ^
  ����, CAP#1�������ͱ���:
    CAP#1��?�IJ�����չObject
ע: ijЩ��Ϣ�Ѿ�����; ��ʹ�� -Xdiags:verbose ���±����Ի���������
1 ������
startup failed:
Compilation failed; see the compiler error output for details.

1 error

Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.

> Task :spring-beans:compileGroovy FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':spring-beans:compileGroovy'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 19s
13 actionable tasks: 4 executed, 9 up-to-date
16:34:35: Task execution finished 'build'.

Comment From: 13567436138

build using gradle,ok now

Comment From: ListenerSun

I have the same problem, how to fix it? can you tell me ?

Comment From: sbrannen

@ListenerSun, please follow the instructions for building from source.

If you still have issues, please create a new issue with full details explaining what went wrong.