Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

The "-source XX" and "-target XX" java compiler parameters should no longer be used in Ant project

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

メンテナーはふだん 1 日以内に返信

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

評価

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

調査の方向性

まず、NetBeans が Ant プロジェクト向けの javac オプションを組み立てている場所と、-source および -target の値が追加されている場所を特定します。コンパイラーの呼び出しを追跡し、要求されたターゲットバージョンがどのように表現されているかを確認します。Ant ビルドが競合する source または target オプションなしで --release を使用し、システムモジュールの警告が解消されれば完了です。

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

説明

Ant Java kind:feature needs:triage
Description

In Ant project, NetBeans is still using obsolete "-source XX" and "-target XX" java compiler parameters. It does not guarantee the compatibility with the target version, because it does not use proper system modules for compilation. The --release XX parameter should be used instead. The compiler warning is clear.

warning: [options] location of system modules is not set in conjunction with -source 11
not setting the location of system modules may lead to class files that cannot run on JDK 11
--release 11 is recommended instead of -source 11 -target 11 because it sets the location of system modules automatically

Use case/motivation

The "--release" parameter cannot be used in additional compiler options, because it collides with -target and -source parameters.

error: option --source cannot be used together with --release
error: option --target cannot be used together with --release
Usage: javac
use --help for a list of possible options

Related issues

No response

Are you willing to submit a pull request?

No

主要言語
Java
スター
3.1k
フォーク
939
平均マージ
5日 3時間
マージ済み PR(30日)
22

環境構築

はじめの一歩

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

apache/netbeans のほかの issue

apache/netbeans の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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