最近 WSED 5.2 から RAD 7.5 に移行した時点で、アプリケーションを破壊するバグがコードに現れました。
RAD 7.5 は、すべてクラス ヘッダーの宣言でそれをマークします ( public class FoStringWriter extends StringWriter implements FoWriter {)
- Exception IOException in throws clause of Writer.append(CharSequence, int, int) is not compatable with StringWriter.append(CharSequence, int, int)
- Exception IOException in throws clause of Writer.append(char) is not compatable with StringWriter.append(char)
- Exception IOException in throws clause of Writer.append(CharSequence) is not compatable with StringWriter.append(CharSequence)
私がウェブ上で見つけたすべての文献は、これが Eclipse の「バグ」であることを示していますが、私の開発者はすでに最新バージョンの Eclipse ソフトウェアをインストールしているはずです。したがって、このエラーをどうすればよいかわからないままです。まだ更新していない IBM からの修正プログラムはありますか? または、このエラーを修正できるコード修正はありますか?
public class FoStringWriter extends StringWriter implements FoWriter {
public void filteredWrite(String str) throws IOException {
FoStringWriter.filteredWrite(str,this);
}
public static void filteredWrite(String str, StringWriter writer) throws IOException {
if (str == null) str = "";
TagUtils tagUtils = TagUtils.getInstance();
str = tagUtils.filter(str);
HashMap dictionary = new HashMap();
dictionary.put("&#","&#");
str = GeneralUtils.translate(str,dictionary);
writer.write(str);
}
}
編集者注:
これが実行するプロセスにより、アプリ用の PDF ドキュメントが作成されます。WSED 5.5 では、動作し、いくつかのエラーがありましたが、PDF の書き込みを止めるものは何もありませんでした。