1

理由はわかりませんが、かなり前から問題がありました。

NetBeans 7.2 を使用しているほとんどのアプリケーションで Java Doc を生成できないようです (7.1 でも同じ問題がありました)。このエラーが発生する理由がわかりません。

java.lang.IllegalArgumentException: Error decoding percent encoded characters

エラーが何を意味するかは知っていますが (英語では当然のことです)、なぜこのように表示されるのかわかりません。私のドキュメンテーションを見る限り、それが意味することを完全に見逃していない限り、「パーセントでエンコードされた文字」はありません。

コード全体は次のとおりです (1 つのファイルのみで、インターフェイスなのでかなり短いです)。

package access;

import exception.DataException;
import java.util.List;
import table.Row;

/**
 *
 * @author Vipar
 */
public interface DataAccessor {
    /**
     * Reads data from a table.
     * 
     * @param table The table.
     * 
     * @param columns The columns to read, or null to read 
     * all the columns in the table.
     * 
     * @param selectionRow A set of filter columns and values 
     * use to subset the rows, or null to 
     * read all the rows in the table.
     * 
     * @param sortColumns The columns to sort, or null to read 
     * without sorting.
     * 
     * @return The list of rows.
     */
    List read(String table,
            String[] columns,
            Row selectionRow,
            String[] sortColumns) throws DataException;

    /**
     * Inserts data into a table.
     * 
     * @param table The table.
     * @param rows The rows to insert
     */
    void insert(String table, List rows) throws DataException;

    /**
     * Updates data in a table.
     * 
     * @param table The table.
     * 
     * @param selectionRow A set of filter columns and values 
     * used to subset the rows, or null to 
     * update all of the rows in the table.
     * 
     * @param updateRow A set of update columns and values.
     */
    void update(String table,
            Row selectionRow,
            Row updateRow) throws DataException;

    /**
     * Deletes data from a table.
     * 
     * @param table The table.
     * 
     * @param selectionRow A set of filter columns and values 
     * used to subset the rows, or null to 
     * delete all of the rows in the table.
     */
    void delete(String table,
            Row selectionRow) throws DataException;
}

現在、Row と DataException はどちらも空であるため、ドキュメントはありません。ドキュメントがどのように見えるかをテストしたかっただけです。

私はJava 1.7を使用しています

4

1 に答える 1

0

あなたのクラスをテストしました --> いつものように javadoc が生成されます。

これらの設定を確認してください ( contextmenu of project -> Properties):

  • Sources -> Encoding: UTF-8: ここには何がありますか?
  • Build -> Documenting: Javadoc オプションを設定しましたか? このテキストフィールドに設定がある場合は、それらを削除して再試行してください。ところで。Documentingでの設定は何ですか?
  • この例外には問題がないので、自由に開いてください。
于 2012-11-26T16:25:43.597 に答える