[Question]: java25 support or build-error
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 28/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 領域
- build-system, testing
調査の方向性
Java 25 で mvn clean package を実行して失敗を再現し、報告されている Java 21 の結果と比較してください。まず ScalaCodegenTest.shouldCallFormatIdentifierOnGetModelName と添付の makepkg.log を確認し、Mockito の失敗が Java 25 の互換性バグなのか、それともプロジェクトがサポート対象の Java バージョンを文書化しており、パッケージングの制約が必要なのかを判断してください。
索引モデルが issue の本文から書いたものです。
説明
Is this a bug or is java25 unsupported?
Hi,
I currently package swagger-codegen (3.0.77-1) like so, boiling down to:
mvn clean package
which currently is
$ mvn -version
Apache Maven 3.9.12 (848fbb4bf2d427b72bdb2471c22fced7ebd9a7a1)
Maven home: /usr/share/java/maven
Java version: 25.0.2, vendor: Arch Linux, runtime: /usr/lib/jvm/java-25-openjdk
Default locale: de_AT, platform encoding: UTF-8
OS name: "linux", version: "6.18.9-arch1-2", arch: "amd64", family: "unix"
however with swagger-codegen 3.0.78 I get the following error (x 2) during mvn package tests:
[ERROR] Failures:
[ERROR] ScalaCodegenTest.shouldCallFormatIdentifierOnGetModelName:27 Mockito
Mockito cannot mock this class: class io.swagger.codegen.languages.ScalaClientCodegen.
If you're not sure why you're getting this error, please open an issue on GitHub.
[...]
You are seeing this disclaimer because Mockito is configured to create inlined mocks.
You can learn about inline mocks and their limitations under item #39 of the Mockito class javadoc.
Underlying exception : org.mockito.exceptions.base.MockitoException: Could not modify all classes
[class io.swagger.codegen.languages.AbstractScalaCodegen,
class java.lang.Object,
class io.swagger.codegen.languages.ScalaClientCodegen,
class io.swagger.codegen.DefaultCodegen,
interface io.swagger.codegen.CodegenConfig]
(full log attached)
And to be honest, this is above my java/maven foo. It looks like Mockito cannot parse/dissasable some ScalaClientCodegen class due to too-new java-version?
So, is this a bug or should I package it with a java<=21 requirement? (could not find any info regarding java version)
Swagger Codegen Version
3.0.78
What Have You Tried?
building with java21 works.
Checklist
- [ x] I have searched the existing issues and documentation.
- [ x] I have provided enough context for maintainers to understand the question.
- [ x] This is not a feature request or bug report.
- 主要言語
- Mustache
- スター
- 17.8k
- フォーク
- 6k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
swagger-api/swagger-codegen のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
swagger-api/swagger-codegen#12755 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
swagger-api/swagger-codegen#12445 ·
-
security vulnerability
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
swagger-api/swagger-codegen#11942 ·
-
[JAVA] Non compilable enums generated with property errorOnUnknownEnum=true対応中かも @HiagoW が 1460 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
swagger-api/swagger-codegen#11812 · リアクション 1 件 ·
-
security vulnerability
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
swagger-api/swagger-codegen#11594 ·
swagger-api/swagger-codegen の issue をすべて見る
似ている issue
-
`loment build DIR` reports success on a source that does not compile, on every run after the firstオープンbug cli sev-5
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
InfiniTimeOrg/InfiniTime#2492 ·
-
package-update
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
Android bug feature/error-tracking react-native team/error-tracking
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
PostHog/posthog-js#5310 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Tune CI caching for cargo and pnpm to speed up the pipeline対応中かも @onakijames-droid が今日担当しました。 オープンgood first issue Stellar Wave
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
OlaGreat/starbound-realms#99 · コメント 1 件 ·