legacy-knowledge-base
公開されました Jun. 30, 2025

FinderCache#getResult(FinderPath, Object[]) の削除が原因でカスタム コードのビルドに失敗する

written-by

Marcos da Silva Xavier

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • FinderCache#getResult(FinderPath, Object[]) メソッドを呼び出す生成されたサービスは、7.4 U47 で削除されたため、ビルドに失敗します。 このメソッドは FinderCache#getResult(FinderPath, Object[], BasePersistence<?>)に置き換えられました。

Environment

  • Liferay サービスビルダー
  • DXP 7.4 U46 以前のバージョン

解決策

  • Service Builder を再実行して、 FinderCache#getResult(FinderPath, Object[])の生成されたすべての使用状況を更新します。 FinderCache#getResult(FinderPath, Object[]) の手動使用は、適切な BasePersistence オブジェクトを 3 番目の引数として渡すことで更新できます。
  • settings.gradle ファイルの com.liferay.gradle.plugins.workspace の新しいバージョンへの更新も同様に機能するはずです。

追加情報

  • 変更の詳細については、 LPS-162804 を確認してください。

did-this-article-resolve-your-issue

legacy-knowledge-base