[英]NetBeans can't generate Java Doc?
我不知道為什么,但是現在已經有一段時間了。
我似乎無法使用NetBeans 7.2為我的大多數應用程序生成Java Doc(與7.1相同的問題)。 我根本無法弄清楚為什么會出現此錯誤:
java.lang.IllegalArgumentException: Error decoding percent encoded characters
我知道錯誤的含義(英語duh),但我不知道為什么會這樣說。 據我在文檔中所看到的,除非我完全不知道那是什么意思,否則不應有任何“百分比編碼字符”。
這是完整的代碼(僅一個文件,並且是一個接口,因此很短):
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
我測試了您的類->照常生成了javadoc。
請檢查以下設置( contextmenu of project -> Properties
):
Sources -> Encoding: UTF-8
:您在這里擁有什么? Build -> Documenting
:您是否設置了一些Javadoc選項 ? 如果您在此文本字段中有設置,請將其刪除,然后重試。 順便說一句。 您在“ 文檔”中的設置是什么?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.