public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/21140] New: Charset.encode and Charset.decode broken
@ 2005-04-21  3:54 luca dot barbieri at gmail dot com
  2005-04-21  5:36 ` [Bug libgcj/21140] " konqueror at gmx dot de
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: luca dot barbieri at gmail dot com @ 2005-04-21  3:54 UTC (permalink / raw)
  To: java-prs

Charset.encode and Charset.decode only work for a single call.

The reason is that the encoder/decoder is cached and after the first call it
will be in the flushed state.

The second call will thus throw an InvalidStateException.

Removing the cache or resetting the cached object should solve this.

-- 
           Summary: Charset.encode and Charset.decode broken
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: luca dot barbieri at gmail dot com
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libgcj/21140] Charset.encode and Charset.decode broken
  2005-04-21  3:54 [Bug libgcj/21140] New: Charset.encode and Charset.decode broken luca dot barbieri at gmail dot com
@ 2005-04-21  5:36 ` konqueror at gmx dot de
  2005-04-21  5:36 ` konqueror at gmx dot de
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: konqueror at gmx dot de @ 2005-04-21  5:36 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From konqueror at gmx dot de  2005-04-21 05:28 -------
This bug is fixed in GNU classpath and I will merge the needed fixes soon. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-04-21 05:28:03
               date|                            |


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libgcj/21140] Charset.encode and Charset.decode broken
  2005-04-21  3:54 [Bug libgcj/21140] New: Charset.encode and Charset.decode broken luca dot barbieri at gmail dot com
  2005-04-21  5:36 ` [Bug libgcj/21140] " konqueror at gmx dot de
@ 2005-04-21  5:36 ` konqueror at gmx dot de
  2005-04-28  2:23 ` [Bug libgcj/21140] [4.0 only] " pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: konqueror at gmx dot de @ 2005-04-21  5:36 UTC (permalink / raw)
  To: java-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |konqueror at gmx dot de
                   |dot org                     |
             Status|NEW                         |ASSIGNED


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libgcj/21140] [4.0 only] Charset.encode and Charset.decode broken
  2005-04-21  3:54 [Bug libgcj/21140] New: Charset.encode and Charset.decode broken luca dot barbieri at gmail dot com
  2005-04-21  5:36 ` [Bug libgcj/21140] " konqueror at gmx dot de
  2005-04-21  5:36 ` konqueror at gmx dot de
@ 2005-04-28  2:23 ` pinskia at gcc dot gnu dot org
  2005-04-28 11:00 ` aph at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-28  2:23 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-28 02:23 -------
Fixed on the mainline by:
2005-04-27  Sven de Marothy  <sven@physto.se>

        * java/nio/charset/Charset.java: Cached encoders shouldn't be static.
        
2005-04-27  Sven de Marothy  <sven@physto.se> 

        * java/nio/charset/Charset.java: Reset cached de/encoders.

Hmm, I think these patches should be backported to 4.0.1.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal
            Summary|Charset.encode and          |[4.0 only] Charset.encode
                   |Charset.decode broken       |and Charset.decode broken
   Target Milestone|---                         |4.0.1


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libgcj/21140] [4.0 only] Charset.encode and Charset.decode broken
  2005-04-21  3:54 [Bug libgcj/21140] New: Charset.encode and Charset.decode broken luca dot barbieri at gmail dot com
                   ` (2 preceding siblings ...)
  2005-04-28  2:23 ` [Bug libgcj/21140] [4.0 only] " pinskia at gcc dot gnu dot org
@ 2005-04-28 11:00 ` aph at gcc dot gnu dot org
  2005-05-04 21:45 ` tromey at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: aph at gcc dot gnu dot org @ 2005-04-28 11:00 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From aph at gcc dot gnu dot org  2005-04-28 11:00 -------
Added to Tom Tromey's queue for 4.0 branch.

-- 


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libgcj/21140] [4.0 only] Charset.encode and Charset.decode broken
  2005-04-21  3:54 [Bug libgcj/21140] New: Charset.encode and Charset.decode broken luca dot barbieri at gmail dot com
                   ` (3 preceding siblings ...)
  2005-04-28 11:00 ` aph at gcc dot gnu dot org
@ 2005-05-04 21:45 ` tromey at gcc dot gnu dot org
  2005-05-17  1:46 ` cvs-commit at gcc dot gnu dot org
  2005-05-17  1:50 ` tromey at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: tromey at gcc dot gnu dot org @ 2005-05-04 21:45 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From tromey at gcc dot gnu dot org  2005-05-04 21:45 -------
Note that the patch from the trunk can't be applied to the 4.0
branch, as it would break compatibility for the C++ ABI.
My current leaning is to simply disable the caching in 4.0.1.


-- 


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libgcj/21140] [4.0 only] Charset.encode and Charset.decode broken
  2005-04-21  3:54 [Bug libgcj/21140] New: Charset.encode and Charset.decode broken luca dot barbieri at gmail dot com
                   ` (4 preceding siblings ...)
  2005-05-04 21:45 ` tromey at gcc dot gnu dot org
@ 2005-05-17  1:46 ` cvs-commit at gcc dot gnu dot org
  2005-05-17  1:50 ` tromey at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-05-17  1:46 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-05-17 01:46 -------
Subject: Bug 21140

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	tromey@gcc.gnu.org	2005-05-17 01:46:06

Modified files:
	libjava        : ChangeLog 
	libjava/java/nio/charset: Charset.java 

Log message:
	PR libgcj/21140:
	* java/nio/charset/Charset.java (encode, decode): Don't cache.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.3391.2.69&r2=1.3391.2.70
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/java/nio/charset/Charset.java.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.9&r2=1.9.2.1



-- 


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug libgcj/21140] [4.0 only] Charset.encode and Charset.decode broken
  2005-04-21  3:54 [Bug libgcj/21140] New: Charset.encode and Charset.decode broken luca dot barbieri at gmail dot com
                   ` (5 preceding siblings ...)
  2005-05-17  1:46 ` cvs-commit at gcc dot gnu dot org
@ 2005-05-17  1:50 ` tromey at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: tromey at gcc dot gnu dot org @ 2005-05-17  1:50 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From tromey at gcc dot gnu dot org  2005-05-17 01:50 -------
Fix checked in.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-05-17  1:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-21  3:54 [Bug libgcj/21140] New: Charset.encode and Charset.decode broken luca dot barbieri at gmail dot com
2005-04-21  5:36 ` [Bug libgcj/21140] " konqueror at gmx dot de
2005-04-21  5:36 ` konqueror at gmx dot de
2005-04-28  2:23 ` [Bug libgcj/21140] [4.0 only] " pinskia at gcc dot gnu dot org
2005-04-28 11:00 ` aph at gcc dot gnu dot org
2005-05-04 21:45 ` tromey at gcc dot gnu dot org
2005-05-17  1:46 ` cvs-commit at gcc dot gnu dot org
2005-05-17  1:50 ` tromey at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).