Menu

#35 Error on files with national symbols

open
nobody
analyzer (15)
5
2005-10-05
2005-10-05
Anonymous
No

lines with national symdols in comments
...
// пересчет изображения в соотв с Window и Level
public Image make();
...

produce Inspection log like this
...
D:\...\ImageMaker.java", line 8 24 closechainsym
expected, endoffile encountered
...

source files stored in win1251 since my version control
system define utf8 as binary :(

I think the problem is in class
com\qasystems\io\FileReader.java
in metod

public String readFileToString() throws IOException {
final byte[] ba = new byte[(int) fileField.length()];
final DataInputStream dis =
new DataInputStream(new java.io.FileInputStream
(fileField));

dis.readFully(ba);
dis.close();

return (new String(ba));
}

but i cannt test my supposition because where is no
working platform-independent build.xml ;)

QJ-Pro v 2.2

ivank0@yandex.ru

Discussion


Log in to post a comment.