public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/39180]  New: New String constructors need to be implemented in local copy of java.lang.String
@ 2009-02-13 16:51 gnu_andrew at member dot fsf dot org
  2009-02-13 17:45 ` [Bug libgcj/39180] " gnu_andrew at member dot fsf dot org
  2009-02-13 17:54 ` tromey at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: gnu_andrew at member dot fsf dot org @ 2009-02-13 16:51 UTC (permalink / raw)
  To: java-prs

http://builder.classpath.org/japi/classpath-libgcj.html#err_missing_java_lang

Classpath now has two new constructors from 1.6 that take a
java.nio.charset.Charset.  We need to provide these in gcj too.


-- 
           Summary: New String constructors need to be implemented in local
                    copy of java.lang.String
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gnu_andrew at member dot fsf dot org


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


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

* [Bug libgcj/39180] New String constructors need to be implemented in local copy of java.lang.String
  2009-02-13 16:51 [Bug libgcj/39180] New: New String constructors need to be implemented in local copy of java.lang.String gnu_andrew at member dot fsf dot org
@ 2009-02-13 17:45 ` gnu_andrew at member dot fsf dot org
  2009-02-13 17:54 ` tromey at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: gnu_andrew at member dot fsf dot org @ 2009-02-13 17:45 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from gnu_andrew at member dot fsf dot org  2009-02-13 17:45 -------
Created an attachment (id=17294)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17294&action=view)
Preliminary patch, has issues with the returned string reading from the wrong
memory location

Preliminary implementation.  The method works as expected, but for some reason
the returned string is not pointing to the characters.


-- 


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


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

* [Bug libgcj/39180] New String constructors need to be implemented in local copy of java.lang.String
  2009-02-13 16:51 [Bug libgcj/39180] New: New String constructors need to be implemented in local copy of java.lang.String gnu_andrew at member dot fsf dot org
  2009-02-13 17:45 ` [Bug libgcj/39180] " gnu_andrew at member dot fsf dot org
@ 2009-02-13 17:54 ` tromey at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: tromey at gcc dot gnu dot org @ 2009-02-13 17:54 UTC (permalink / raw)
  To: java-prs



------- Comment #2 from tromey at gcc dot gnu dot org  2009-02-13 17:54 -------
This line looks fishy:

+         boffset = cbuf->position();

boffset is a byte offset from the start of 'data' to the first character.
So, you probably need to multiply by sizeof(jchar) and also add in
the size of the array header.


-- 


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


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

end of thread, other threads:[~2009-02-13 17:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-13 16:51 [Bug libgcj/39180] New: New String constructors need to be implemented in local copy of java.lang.String gnu_andrew at member dot fsf dot org
2009-02-13 17:45 ` [Bug libgcj/39180] " gnu_andrew at member dot fsf dot org
2009-02-13 17:54 ` 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).