commit-classpath
[Top][All Lists]
Advanced

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

[commit-cp] [bug #13137] Infinite recursion in java.nio.charset.*


From: anonymous
Subject: [commit-cp] [bug #13137] Infinite recursion in java.nio.charset.*
Date: Fri, 20 May 2005 14:49:30 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913

URL:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=13137>

                 Summary: Infinite recursion in java.nio.charset.*
                 Project: classpath
            Submitted by: None
            Submitted on: Fri 05/20/05 at 10:49
                Category: classpath
                Severity: 3 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
        Platform Version: None

    _______________________________________________________

Details:

GNU Classpath falls into infinite recursion when "file.encoding" property is
set to an encoding name other than ISO8859_1 family.

Below is the call chain.
java/nio/charset/Charset#forName
-> java/nio/charset/Charset#charsetForName
-> java/nio/charset/Charset#providers2
-> java/io/InputStreamReader#<init>
-> gnu/java/nio/charset/EncodingHelper#getCharset
-> java/nio/charset/Charset#forName
-> ...

For those who need to specify "file.encoding" property to handle their
languages, this means even a single print(String) could cause stack
overflow:
java/io/PrintStream#print
-> java/io/PrintStream#writeChars
-> java/lang/String#getBytes
-> java/nio/charset/Charset#forName
-> ...







    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=13137>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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