openrewrite / openrewrite/rewrite-migrate-java

Possible regression in 6.37.0 version

オープン
#1,069 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug
主要言語
Java
スター
156
フォーク
130
平均マージ
20時間 57分
マージ済み PR(30日)
21

説明

What version of OpenRewrite are you using?

I am using

  • org.openrewrite:rewrite-maven-plugin 6.37.0
  • Maven 3.6.3

How are you running OpenRewrite?

Maven Command Line

What is the smallest, simplest way to reproduce the problem?

I copied the jakarta 10 migration example in a personal project

mvn -U org.openrewrite.maven:rewrite-maven-plugin:run --define rewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-migrate-java:RELEASE --define rewrite.activeRecipes=org.openrewrite.java.migrate.jakarta.JakartaEE10 --define rewrite.exportDatatables=true

What did you expect to see?

Jakarta10 rules applied in the project within seconds.

What did you see instead?

Using new version 6.37.0, it took 5minutes to complete the process. However, using version org.openrewrite:rewrite-maven-plugin v6.36.0, the process completed in seconds in the same project.

What is the full stack trace of any errors you encountered?

It didn't throw an error. But the SourcesFileResults.csv file in v6.37 has 2500+ rows. In contrast, v6.36 file only generates 8 rows

Are you interested in contributing a fix to OpenRewrite?

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、提供された Maven コマンドを rewrite-maven-plugin 6.36.0 と 6.37.0 で同じ Jakarta EE 10 移行プロジェクトに対して実行し、実行時間と SourcesFileResults.csv を比較します。JakartaEE10 レシピの実行を追跡して、6.37.0 が 8 行ではなく 2,500 行以上を生成する理由を特定します。回帰が再現され、説明され、回帰テストでカバーされれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
tooling
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。