From MAILER-DAEMON Mon Apr 16 08:26:53 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SJl1B-00025x-CA
	for mharc-bug-classpath@gnu.org; Mon, 16 Apr 2012 08:26:53 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57101)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gjobin@digger.ch>) id 1SJl14-000250-9t
	for bug-classpath@gnu.org; Mon, 16 Apr 2012 08:26:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gjobin@digger.ch>) id 1SJl10-0003pB-Tv
	for bug-classpath@gnu.org; Mon, 16 Apr 2012 08:26:45 -0400
Received: from smtp1.infomaniak.ch ([84.16.68.89]:48718)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gjobin@digger.ch>) id 1SJl10-0003oS-H0
	for bug-classpath@gnu.org; Mon, 16 Apr 2012 08:26:42 -0400
Received: from [192.168.1.58] (155-109.78-83.cust.bluewin.ch [83.78.109.155])
	(authenticated bits=0)
	by smtp1.infomaniak.ch (8.14.2/8.14.2) with ESMTP id q3GC9LxV016744
	(version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO)
	for <bug-classpath@gnu.org>; Mon, 16 Apr 2012 14:09:21 +0200
Message-ID: <1334578161.4125.10.camel@GagouNotebook>
Subject: FileDescriptor.java => fd attribute missing???
From: =?ISO-8859-1?Q?Ga=EBl?= Jobin <gjobin@digger.ch>
To: bug-classpath@gnu.org
Date: Mon, 16 Apr 2012 14:09:21 +0200
Content-Type: multipart/alternative; boundary="=-nC6amnn0znMwES0ggCgQ"
X-Mailer: Evolution 3.2.2-1 
Mime-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: Linux 2.6? (barebone, rare!)
X-Received-From: 84.16.68.89
X-BeenThere: bug-classpath@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: gcc-bugzilla@gcc.gnu.org
List-Id: Bug reports for the GNU Classpath project <bug-classpath.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-classpath>,
	<mailto:bug-classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-classpath>
List-Post: <mailto:bug-classpath@gnu.org>
List-Help: <mailto:bug-classpath-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-classpath>,
	<mailto:bug-classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Apr 2012 12:26:52 -0000


--=-nC6amnn0znMwES0ggCgQ
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by smtp1.infomaniak.ch id q3GC9LxV016744

Hi list,

I have developped a Java application that talk with the CAN bus (under
Linux through SocketCAN). Instead of writing a complete JNI wrapper, I
prefered to put the file descriptor from the socket (opened through JNI)
into a FileDescriptor Java object. With OpenJDK or the official Java
library, the FileDescriptor class contains a "fd" attribute and all work
fine (I can use the CAN bus as a file). But surprisingly GNU Classpath
use a FileDescriptor class without the "fd" attribute...

I searched on Internet and found a guy who had already submitted a patch
without any responses.

http://permalink.gmane.org/gmane.comp.java.classpath.patches/13188

 Why this patch haven't been merged yet?

Thank you in advance,

Ga=C3=ABl

--=-nC6amnn0znMwES0ggCgQ
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.2.2">
</HEAD>
<BODY>
Hi list,<BR>
<BR>
I have developped a Java application that talk with the CAN bus (under Linux through SocketCAN). Instead of writing a complete JNI wrapper, I prefered to put the file descriptor from the socket (opened through JNI) into a FileDescriptor Java object. With OpenJDK or the official Java library, the FileDescriptor class contains a &quot;fd&quot; attribute and all work fine (I can use the CAN bus as a file). But surprisingly GNU Classpath use a FileDescriptor class without the &quot;fd&quot; attribute...<BR>
<BR>
I searched on Internet and found a guy who had already submitted a patch without any responses.<BR>
<BR>
<A HREF="http://permalink.gmane.org/gmane.comp.java.classpath.patches/13188">http://permalink.gmane.org/gmane.comp.java.classpath.patches/13188</A><BR>
<BR>
 Why this patch haven't been merged yet?<BR>
<BR>
Thank you in advance,<BR>
<BR>
Ga&#235;l
</BODY>
</HTML>

--=-nC6amnn0znMwES0ggCgQ--



From MAILER-DAEMON Mon Apr 30 11:58:10 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SOszK-0001t8-2d
	for mharc-bug-classpath@gnu.org; Mon, 30 Apr 2012 11:58:10 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57741)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gcc-bugzilla@gcc.gnu.org>) id 1SOszG-0001sM-Ed
	for bug-classpath@gnu.org; Mon, 30 Apr 2012 11:58:08 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gcc-bugzilla@gcc.gnu.org>) id 1SOszE-0006kn-A2
	for bug-classpath@gnu.org; Mon, 30 Apr 2012 11:58:05 -0400
Received: from server1.sourceware.org ([209.132.180.131]:33327
	helo=sourceware.org) by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <gcc-bugzilla@gcc.gnu.org>) id 1SOszD-0006kZ-V7
	for bug-classpath@gnu.org; Mon, 30 Apr 2012 11:58:04 -0400
Comment: DKIM? See http://www.dkim.org
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed;
	d=gcc.gnu.org; s=default; x=1336406283; h=Comment:
	DomainKey-Signature:Received:Received:From:To:Subject:Date:
	Message-ID:Auto-Submitted:Content-Type:MIME-Version; bh=tOYUHzvn
	0VMCHtoexqNA4eqQV/E=; b=TAg8czx53NuTI4kDv4Q56ZEJ9MT9qSVMDcnLCip2
	4Jrk6/4mI3X0eQtFgUMtpQojJ1ihMnqiX0Co0gZKp52L/5qQX872XeJn0ho0joWL
	QQHYNzKJ4OTY+NH1qHaWdl7vrBm8lYqMNvryTt0RPkMeK9ojmcuvJFqVuWS+HhZA
	060=
Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org;
	h=Received:X-SWARE-Spam-Status:X-Spam-Status:X-Spam-Check-By:Received:From:To:Subject:Date:X-Bugzilla-Reason:X-Bugzilla-Type:X-Bugzilla-Watch-Reason:X-Bugzilla-Product:X-Bugzilla-Component:X-Bugzilla-Keywords:X-Bugzilla-Severity:X-Bugzilla-Who:X-Bugzilla-Status:X-Bugzilla-Priority:X-Bugzilla-Assigned-To:X-Bugzilla-Target-Milestone:X-Bugzilla-Changed-Fields:Message-ID:X-Bugzilla-URL:Auto-Submitted:Content-Type:MIME-Version;
	b=EyFYQwjP2U25QVdm+mPX3XHoVSfoE8L2Ck1qG5TkwIA21qBxRlbHa8pxDHOrX4
	Tyw1pz1tmTJsVhZ2dcpA5YEQVWp78vnHSPtglgboT3dxVgqnPy/8oFSRXQY35Ekc
	51N/QgJMvh8VFPC5AXLujR0BX5VkKS/UA1OaSJTF86qas=;
Received: (qmail 2261 invoked by uid 22791); 30 Apr 2012 15:58:01 -0000
X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00
Received: from localhost (HELO gcc.gnu.org) (127.0.0.1)
	by sourceware.org (qpsmtpd/0.43rc1) with ESMTP;
	Mon, 30 Apr 2012 15:57:45 +0000
From: "sewe at st dot informatik.tu-darmstadt.de" <gcc-bugzilla@gcc.gnu.org>
To: bug-classpath@gnu.org
Subject: [Bug classpath/53171] New: DateFormatSymbols should cache Pattern
	instances
Date: Mon, 30 Apr 2012 15:57:41 +0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: classpath
X-Bugzilla-Component: classpath
X-Bugzilla-Keywords: 
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sewe at st dot informatik.tu-darmstadt.de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Changed-Fields: 
Message-ID: <bug-53171-11049@http.gcc.gnu.org/bugzilla/>
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
Content-Type: text/plain; charset="UTF-8"
MIME-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.132.180.131
X-BeenThere: bug-classpath@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: gcc-bugzilla@gcc.gnu.org
List-Id: Bug reports for the GNU Classpath project <bug-classpath.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-classpath>,
	<mailto:bug-classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-classpath>
List-Post: <mailto:bug-classpath@gnu.org>
List-Help: <mailto:bug-classpath-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-classpath>,
	<mailto:bug-classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Apr 2012 15:58:08 -0000

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

             Bug #: 53171
           Summary: DateFormatSymbols should cache Pattern instances
    Classification: Unclassified
           Product: classpath
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: sewe@st.informatik.tu-darmstadt.de


Created attachment 27269
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27269
Caching of two Patterns in DateFormatSymbols (to be used by Jikes RVM until
fixed in GNU Classpath)

Currently (in Classpath 0.99), java.text.DateFormatSymbols uses String.split
with two constant patterns ("\u00a9" and "\u00ae") several times whenever a new
DateFormatSymbols instance is created. The corresponding
java.util.regex.Pattern instances should really be cached.

The attached patch improves performance of the DaCapo 2006-10-MR2 luindex
benchmark (which creates many instances of java.text.SimpleDateFormat and
consequently of DateFormatSymbols) on Jikes RVM by about 2%. (See
<http://sourceforge.net/mailarchive/message.php?msg_id=29194083> for further
information.)

The serializability of DateFormatSymbols should remain unaffected, as Pattern
is serializable as well.


From MAILER-DAEMON Mon Apr 30 14:11:28 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SOv4K-0003ot-Kr
	for mharc-bug-classpath@gnu.org; Mon, 30 Apr 2012 14:11:28 -0400
Received: from eggs.gnu.org ([208.118.235.92]:59433)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gcc-bugzilla@gcc.gnu.org>) id 1SOv4G-0003nu-Fm
	for bug-classpath@gnu.org; Mon, 30 Apr 2012 14:11:25 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gcc-bugzilla@gcc.gnu.org>) id 1SOv4E-00080P-GH
	for bug-classpath@gnu.org; Mon, 30 Apr 2012 14:11:24 -0400
Received: from server1.sourceware.org ([209.132.180.131]:46921
	helo=sourceware.org) by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <gcc-bugzilla@gcc.gnu.org>) id 1SOv4E-00080H-2V
	for bug-classpath@gnu.org; Mon, 30 Apr 2012 14:11:22 -0400
Comment: DKIM? See http://www.dkim.org
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed;
	d=gcc.gnu.org; s=default; x=1336414282; h=Comment:
	DomainKey-Signature:Received:Received:From:To:Subject:Date:
	Message-ID:Auto-Submitted:Content-Type:MIME-Version; bh=/hdJS/2A
	jFvIieSlmzjjI14pvcg=; b=cLERswfPTKQwB5TpRr5QrRUdiLnje8AZYdGUqKs9
	RFfU0Xy0Po3x37t7lmf7LupAyXYZ6kmjaIlM3BQle1cPlIHCdpVZz/Vi2iLrjFmC
	+hEx8e4aH4HHk/ElyA23nd2qkbHOGJjly7Io8c4J+d1fCV+n2xGSyEPuLn2CC61x
	DeE=
Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org;
	h=Received:X-SWARE-Spam-Status:X-Spam-Status:X-Spam-Check-By:Received:From:To:Subject:Date:X-Bugzilla-Reason:X-Bugzilla-Type:X-Bugzilla-Watch-Reason:X-Bugzilla-Product:X-Bugzilla-Component:X-Bugzilla-Keywords:X-Bugzilla-Severity:X-Bugzilla-Who:X-Bugzilla-Status:X-Bugzilla-Priority:X-Bugzilla-Assigned-To:X-Bugzilla-Target-Milestone:X-Bugzilla-Changed-Fields:Message-ID:X-Bugzilla-URL:Auto-Submitted:Content-Type:MIME-Version;
	b=w0Q9b+DM2WU33JFYL94eiWCDW8m0ZHnaVU5kroPi5+tjUjVjIwWkeCPZFIdUOl
	fof80RI8YN7O+NrI9P3P/4EIzsE1Mng67iJs5k7Ha3Bzu6ex2xFl/2PcjT4dWBbg
	249AlA+PzqM97m5Qlr4M5Au/NLjIBB/jydqse+P9cDTG0=;
Received: (qmail 24723 invoked by uid 22791); 30 Apr 2012 18:11:20 -0000
X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00
Received: from localhost (HELO gcc.gnu.org) (127.0.0.1)
	by sourceware.org (qpsmtpd/0.43rc1) with ESMTP;
	Mon, 30 Apr 2012 18:11:07 +0000
From: "sewe at st dot informatik.tu-darmstadt.de" <gcc-bugzilla@gcc.gnu.org>
To: bug-classpath@gnu.org
Subject: [Bug classpath/53172] New: Collections.emptyIterator doesn't throw
	expected exceptions on next()/remove()
Date: Mon, 30 Apr 2012 18:11:06 +0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: classpath
X-Bugzilla-Component: classpath
X-Bugzilla-Keywords: 
X-Bugzilla-Severity: minor
X-Bugzilla-Who: sewe at st dot informatik.tu-darmstadt.de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Changed-Fields: 
Message-ID: <bug-53172-11049@http.gcc.gnu.org/bugzilla/>
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
Content-Type: text/plain; charset="UTF-8"
MIME-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.132.180.131
X-BeenThere: bug-classpath@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: gcc-bugzilla@gcc.gnu.org
List-Id: Bug reports for the GNU Classpath project <bug-classpath.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-classpath>,
	<mailto:bug-classpath-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-classpath>
List-Post: <mailto:bug-classpath@gnu.org>
List-Help: <mailto:bug-classpath-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-classpath>,
	<mailto:bug-classpath-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Apr 2012 18:11:26 -0000

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

             Bug #: 53172
           Summary: Collections.emptyIterator doesn't throw expected
                    exceptions on next()/remove()
    Classification: Unclassified
           Product: classpath
           Version: unspecified
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: classpath
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: sewe@st.informatik.tu-darmstadt.de


In the 0.99 release the implementation of Collections.EmptyIterator looks like
this:

  private static final class EmptyIterator<T> implements Iterator<T> {
    public boolean hasNext() {
      return false;
    }

    public T next() {
      return null;
    }

    public void remove() {}
  }

Alas, according to the OpenJDK JavaDoc, next() and remove() should throw
exceptions: NoSuchElementException and IllegalStateException, respectively
<http://docs.oracle.com/javase/7/docs/api/java/util/Collections.html#emptyIterator%28%29>.

That being said, I can't, for the life of me, find the respective code in the
Git respository
<http://git.savannah.gnu.org/cgit/classpath.git/tree/java/util/Collections.java>,
so maybe this issue is moot.


