My Oracle Support Banner

使用JDK 8运行WLS 12.1.3 编译JSP时发生错误 (Doc ID 2129724.1)

Last updated on JULY 01, 2019

适用于:

Oracle WebLogic Server - 版本 12.1.3.0.0 和更高版本
本文档所含信息适用于所有平台

症状

使用JDK 8运行WLS 12.1.3 编译JSP时发生如下错误。

weblogic.servlet.jsp.CompilationException: Failed to compile JSP /index.jsp
index.jsp:3:44: The type new Comparator(){} must implement the inherited abstract method Comparator.thenComparing(Function, Comparator)
index.jsp:3:44: The type new Comparator(){} must implement the inherited abstract method Comparator.thenComparing(Function)

...

原因

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


文档内容
症状
原因
解决方案
参考

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.