public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/16281] New: JNI accepts illegal Class Descriptors
@ 2004-06-29 22:14 mark at gcc dot gnu dot org
  2004-06-30  3:30 ` [Bug libgcj/16281] " mckinlay at redhat dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: mark at gcc dot gnu dot org @ 2004-06-29 22:14 UTC (permalink / raw)
  To: java-prs

JNI Class Descriptors look like Lclass/name/with/dot/replaced/by/slash;
Ljava/lang/String; is a legal JNI Class Descriptor, but Ljava.lang.String; is
not. The second form is accepted in for example Method Descriptors given to
GetMethodID as shown in this email:
http://gcc.gnu.org/ml/java-patches/2004-q2/msg00831.html

It would be nice if there was at least a warning that non-standard Class
Descriptors are accepted since this will likely fail on other JNI
implementations (like the jamvm one).

-- 
           Summary: JNI accepts illegal Class Descriptors
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mark at gcc dot gnu dot org
                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=16281


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

* [Bug libgcj/16281] JNI accepts illegal Class Descriptors
  2004-06-29 22:14 [Bug libgcj/16281] New: JNI accepts illegal Class Descriptors mark at gcc dot gnu dot org
@ 2004-06-30  3:30 ` mckinlay at redhat dot com
  2004-06-30  8:50 ` mckinlay at redhat dot com
  2005-09-04 12:20 ` mark at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: mckinlay at redhat dot com @ 2004-06-30  3:30 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From mckinlay at redhat dot com  2004-06-30 03:26 -------
Confirmed. The problem is that JNI uses the "slash format" while GCJ uses the "dot format" internally. 
We could perhaps switch to using "slash format" internally in GCJ, although this could make some 
things a little less efficient. In any case, IMO libgcj should never accept "dot format" for JNI. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-06-30 03:26:57
               date|                            |


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


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

* [Bug libgcj/16281] JNI accepts illegal Class Descriptors
  2004-06-29 22:14 [Bug libgcj/16281] New: JNI accepts illegal Class Descriptors mark at gcc dot gnu dot org
  2004-06-30  3:30 ` [Bug libgcj/16281] " mckinlay at redhat dot com
@ 2004-06-30  8:50 ` mckinlay at redhat dot com
  2005-09-04 12:20 ` mark at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: mckinlay at redhat dot com @ 2004-06-30  8:50 UTC (permalink / raw)
  To: java-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|enhancement                 |normal


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


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

* [Bug libgcj/16281] JNI accepts illegal Class Descriptors
  2004-06-29 22:14 [Bug libgcj/16281] New: JNI accepts illegal Class Descriptors mark at gcc dot gnu dot org
  2004-06-30  3:30 ` [Bug libgcj/16281] " mckinlay at redhat dot com
  2004-06-30  8:50 ` mckinlay at redhat dot com
@ 2005-09-04 12:20 ` mark at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: mark at gcc dot gnu dot org @ 2005-09-04 12:20 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From mark at gcc dot gnu dot org  2005-09-04 12:20 -------
This is addressed by the patch for bug #19512 Optional JNI error checking. Which
(among others) includes the following:

- Check that '.' is not used in method and field descriptors.

*** This bug has been marked as a duplicate of 19512 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2005-09-04 12:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-29 22:14 [Bug libgcj/16281] New: JNI accepts illegal Class Descriptors mark at gcc dot gnu dot org
2004-06-30  3:30 ` [Bug libgcj/16281] " mckinlay at redhat dot com
2004-06-30  8:50 ` mckinlay at redhat dot com
2005-09-04 12:20 ` mark 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).