bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gjdoc/22876] ParseException with -encoding UTF-8


From: gcc-bugzilla at gcc dot gnu dot org
Subject: [Bug gjdoc/22876] ParseException with -encoding UTF-8
Date: 16 Oct 2005 01:27:33 -0000

Trying process the attached file with gjdoc from today's CVS triggers
a ParseException:

address@hidden:~/trans/x$ gjdoc -encoding UTF-8 Bug.java
Loading source file Bug.java ...
gnu.classpath.tools.gjdoc.ParseException: unmatched input in line 1: [[50 null
characters omitted]]
   at gnu.classpath.tools.gjdoc.Parser.parse(char[], int,
gnu.classpath.tools.gjdoc.SourceComponent[])
(/home/kalle/stow/gjdoc/i386-pc-linux-gnu/lib/lib-gnu-classpath-tools-gjdoc.so.0.0.0)
   at gnu.classpath.tools.gjdoc.Parser.processSourceFile(java.io.File, boolean,
java.lang.String, java.lang.String)
(/home/kalle/stow/gjdoc/i386-pc-linux-gnu/lib/lib-gnu-classpath-tools-gjdoc.so.0.0.0)
   at gnu.classpath.tools.gjdoc.RootDocImpl.build()
(/home/kalle/stow/gjdoc/i386-pc-linux-gnu/lib/lib-gnu-classpath-tools-gjdoc.so.0.0.0)
   at gnu.classpath.tools.gjdoc.Main.startDoclet(java.util.List)
(/home/kalle/stow/gjdoc/i386-pc-linux-gnu/lib/lib-gnu-classpath-tools-gjdoc.so.0.0.0)
   at gnu.classpath.tools.gjdoc.Main.start(java.lang.String[])
(/home/kalle/stow/gjdoc/i386-pc-linux-gnu/lib/lib-gnu-classpath-tools-gjdoc.so.0.0.0)
   at gnu.classpath.tools.gjdoc.Main.main(java.lang.String[])
(/home/kalle/stow/gjdoc/i386-pc-linux-gnu/lib/lib-gnu-classpath-tools-gjdoc.so.0.0.0)
address@hidden:~/trans/x$ 

The same without -encoding UTF-8 works all right.  Note that the file
itself is plain ASCII.

The bug occurs regardless of whether gjdoc is compiled with gcj to
native code, or compiled to bytecode with jikes and run with kaffe.


------- Comment #1 from from-classpath at savannah dot gnu dot org  2005-02-14 
23:16 -------
This problem was reproducible and is fixed. -encoding utf8 works now for both
the attached test case and for all source codes in Classpath.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22876





reply via email to

[Prev in Thread] Current Thread [Next in Thread]