Conflict between StaticWriter and Writer classes

As in our recent transition from WSED 5.2 to RAD 7.5, an error occurred in our code in the application cheating.

RAD 7.5 marks it this way, everything when declaring a class header (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)

Every piece of literature I could find on the Internet indicates that this is a “bug” in Eclipse, but my developer should have the latest Eclipse software on it. Therefore, I do not know what to do with this error. Is there a fix from IBM that I just haven't updated yet? Or is there a code fix that could fix this error?

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);      
}

}

Note:

, , PDF . WSED 5.5 , , PDF.

+4
1

, "", .

, "", .

StringWriter , - .

public StringWriter append(char c) {
    write(c);
    return this;
}

public StringWriter append(CharSequence csq) {
    if (csq == null)
        write("null");
    else
        write(csq.toString());
        return this;
}

public StringWriter append(CharSequence csq, int start, int end) {
    CharSequence cs = (csq == null ? "null" : csq);
    write(cs.subSequence(start, end).toString());
        return this;
}

, , , , , .

, , , . FoStringWriter StringWriter, Writer, "", . , .

+1

All Articles