My Oracle Support Banner

JDK 8 で WLS 12.1.3 を使用する場合、JSP のコンパイルでエラーが発生する (Doc ID 2127896.1)

Last updated on OCTOBER 05, 2020

適用範囲:

Oracle WebLogic Server - バージョン 12.1.3.0.0 以降
この文書の内容はすべてのプラットフォームに適用されます。

現象

JDK 8 で WLS 12.1.3 を使用する場合、JSP のコンパイルに例外 CompilationException が発生します。

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.