mapstruct / mapstruct/mapstruct-idea
Report error for result types with wildcard extends bound
オープン
まだ誰も着手していません。
feature
hack.commit.push
- 主要言語
- Java
- スター
- 168
- フォーク
- 41
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
MapStruct does not support result types with an extends bound. For example
import java.util.List;
import org.mapstruct.Mapper;
@Mapper
public interface BoundMapper {
List<? extends Number> toExtends(List<Integer> in);
}
is invalide, because of the wildcard extends bound ? extends . MapStruct reports this as
Can't generate mapping method for a wildcard extends bound result.
Currently the plugin doesn't report this as an error.
One possible QuickFix could be removing the wildcard extends bound ? extends .
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず IntelliJ の BoundMapper 例で問題を再現し、プラグインが wildcard の extends 境界を持つ結果型をどのように処理しているかを調べます。このケースでプラグインがエラーを報告し、? extends 境界の削除を可能な QuickFix として提示すれば完了です。payload ではソースファイルもテストも指定しません。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- tooling
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 55/100