From MAILER-DAEMON Thu Apr 14 06:15:49 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1aqeJR-0001Ee-RQ
	for mharc-bug-classpath@gnu.org; Thu, 14 Apr 2016 06:15:49 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:38696)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gcc-bugzilla@gcc.gnu.org>) id 1aqeJN-00016t-7l
	for bug-classpath@gnu.org; Thu, 14 Apr 2016 06:15:49 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gcc-bugzilla@gcc.gnu.org>) id 1aqeJK-0005Zc-Gs
	for bug-classpath@gnu.org; Thu, 14 Apr 2016 06:15:45 -0400
Received: from server1.sourceware.org ([209.132.180.131]:35412
	helo=sourceware.org) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gcc-bugzilla@gcc.gnu.org>) id 1aqeJK-0005ZU-70
	for bug-classpath@gnu.org; Thu, 14 Apr 2016 06:15:42 -0400
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=from:to
	:subject:date:message-id:content-type:content-transfer-encoding
	:mime-version; q=dns; s=default; b=aYTa34UVRqkvloCiaTXZ/SsJfUAzV
	9AJyRkamNYxyX1pC+E7XXVM5DTPgHIFpILnXlEsqsVNZJjcT6wfFJ7XPNeX22Ulh
	zYw6JZDKI3PQ8OQlEAjCYnCEAHAbJKojJKkrg/2d2dw+D8BaAbQ1VKt+8dQyDcqp
	HyRlywjXRgfYQ8=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=from:to
	:subject:date:message-id:content-type:content-transfer-encoding
	:mime-version; s=default; bh=gxoWiOwJabyj1HflAcYBQQuAbSQ=; b=MLH
	uSKStk0dPoIt3xLZeCFdNSt3xjjp7GpeKLWMZBVgWwMbN4wGPN3kYCafFvu4mlsg
	KqkIKXnB/3GG3HAmX92WrGtXalo5nIjTgVLBLF3v42MzSDN206esyzpQbTzVxC6g
	lcG7t3H5gfMDBSs2YdnJTN69YENCrtIidw6DuIks=
Received: (qmail 110846 invoked by uid 48); 14 Apr 2016 10:15:41 -0000
From: "guillerodriguez.dev at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: bug-classpath@gnu.org
Subject: [Bug classpath/70658] New: Negative suffix not properly handlded in
	DecimalFormat
Date: Thu, 14 Apr 2016 10:15:36 +0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: classpath
X-Bugzilla-Component: classpath
X-Bugzilla-Version: 0.99
X-Bugzilla-Keywords: 
X-Bugzilla-Severity: normal
X-Bugzilla-Who: guillerodriguez.dev at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution: 
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: 
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status
	bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-70658-11049@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 209.132.180.131
X-BeenThere: bug-classpath@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
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: Thu, 14 Apr 2016 10:15:49 -0000

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D70658

            Bug ID: 70658
           Summary: Negative suffix not properly handlded in DecimalFormat
           Product: classpath
           Version: 0.99
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
          Assignee: unassigned at gcc dot gnu.org
          Reporter: guillerodriguez.dev at gmail dot com
  Target Milestone: ---

When a negative subpattern is not explicitly defined, DecimalFormat should =
use
the "positive suffix" for negative values as well.

Simple test case to reproduce the problem:

  DecimalFormat tempFormat =3D new DecimalFormat("0.0 unit");
  System.out.println(tempFormat.format(4.3));
  System.out.println(tempFormat.format(-4.3));

Yields:

4.3 unit
-4.3

Should be:

4.3 unit
-4.3 unit=


From MAILER-DAEMON Thu Apr 14 06:18:46 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1aqeMI-0004m9-F5
	for mharc-bug-classpath@gnu.org; Thu, 14 Apr 2016 06:18:46 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:39106)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gcc-bugzilla@gcc.gnu.org>) id 1aqeMF-0004iu-Uv
	for bug-classpath@gnu.org; Thu, 14 Apr 2016 06:18:44 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gcc-bugzilla@gcc.gnu.org>) id 1aqeMD-0006ZQ-6t
	for bug-classpath@gnu.org; Thu, 14 Apr 2016 06:18:43 -0400
Received: from server1.sourceware.org ([209.132.180.131]:35757
	helo=sourceware.org) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gcc-bugzilla@gcc.gnu.org>) id 1aqeMD-0006ZL-0V
	for bug-classpath@gnu.org; Thu, 14 Apr 2016 06:18:41 -0400
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=from:to
	:subject:date:message-id:content-type:content-transfer-encoding
	:mime-version; q=dns; s=default; b=W7m+8pmJ4JNoYKaTyKwknelMdmgpt
	WxvQ627ZSM+X3xAjXAMKyp4wZpIBpK2rZ13Etf7iBB8D6EFocx/U0Gx7mJPh3rLY
	YkdyHVdWK3D85SXsXFV6T/Jc4XkjXzs+5DIjooAOL+cwUwQu87daP38sSw7WpGj8
	yMDVOvisK6B0Dk=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=from:to
	:subject:date:message-id:content-type:content-transfer-encoding
	:mime-version; s=default; bh=0IJSO7BmrjJfIWQ35ngvjEV8fPI=; b=dEM
	Bo8Essh/x3beHnONdekYLUVq3aSYVDJGtc5eocUVPYfiWNwIp0IjDXvYN01yThRj
	9JqXLS9UZIJBquSG+l/ynMGEhjRbHesVcqLntU0gXus8MeuHopfK527TtNt4Fnyj
	e4RAlZXiHYT8zpWJLCpARYF+yj8K4qzwPueIr3A4=
Received: (qmail 11919 invoked by uid 48); 14 Apr 2016 10:18:40 -0000
From: "guillerodriguez.dev at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: bug-classpath@gnu.org
Subject: [Bug classpath/70659] New: CPNIO_DSYNC flag ignored in VMChannel
Date: Thu, 14 Apr 2016 10:18:39 +0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: classpath
X-Bugzilla-Component: classpath
X-Bugzilla-Version: 0.99
X-Bugzilla-Keywords: 
X-Bugzilla-Severity: normal
X-Bugzilla-Who: guillerodriguez.dev at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution: 
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: 
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status
	bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-70659-11049@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 209.132.180.131
X-BeenThere: bug-classpath@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
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: Thu, 14 Apr 2016 10:18:45 -0000

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D70659

            Bug ID: 70659
           Summary: CPNIO_DSYNC flag ignored in VMChannel
           Product: classpath
           Version: 0.99
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
          Assignee: unassigned at gcc dot gnu.org
          Reporter: guillerodriguez.dev at gmail dot com
  Target Milestone: ---

The CPNIO_DSYNC flag is ignored by the VMChannel class (only CPNIO_SYNC is
honoured). This breaks at least RandomFileAccess when open in "rwd" mode ("=
rws"
would work as expected).=


From MAILER-DAEMON Thu Apr 14 06:21:12 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1aqeOe-0008KL-0D
	for mharc-bug-classpath@gnu.org; Thu, 14 Apr 2016 06:21:12 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:40076)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gcc-bugzilla@gcc.gnu.org>) id 1aqeOc-0008Gi-9P
	for bug-classpath@gnu.org; Thu, 14 Apr 2016 06:21:11 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gcc-bugzilla@gcc.gnu.org>) id 1aqeOW-00076F-FI
	for bug-classpath@gnu.org; Thu, 14 Apr 2016 06:21:10 -0400
Received: from server1.sourceware.org ([209.132.180.131]:36224
	helo=sourceware.org) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gcc-bugzilla@gcc.gnu.org>) id 1aqeOW-000764-8t
	for bug-classpath@gnu.org; Thu, 14 Apr 2016 06:21:04 -0400
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=from:to
	:subject:date:message-id:content-type:content-transfer-encoding
	:mime-version; q=dns; s=default; b=ixAeX+UclRW/U8aRWf4ZchARrVeMQ
	SQUrd1u0GwM8LPouJLGGkB1xSWGCRY3BZNs4UZR4iOXd/MM9jjVfpnTDFnPebI0U
	3NyzV7z5iBnSQ01a0FBDnDb09fQEBbD8n5YYQZnL0GVcdAZLi+1pQlI+Fw66eVSI
	k0sToylc941aDA=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=from:to
	:subject:date:message-id:content-type:content-transfer-encoding
	:mime-version; s=default; bh=Kshf8llQswFU694twKFzgA+RARM=; b=RH8
	jofluIo0bRAJfwhcns6R8nvFVASN87pAu1DgX9LlguJjvtIizfBBLE4SuBDQe5JK
	CXXYSGnSXBNEfu1V5H0IFi7PIByFQWN1qhXv+qVxULWLMgPZ0ngnq8Ws8cTcgYR3
	NghmfS6ezp1X3X0nJ3AWlsuaPOAXaZoumU6AqhSc=
Received: (qmail 16159 invoked by uid 48); 14 Apr 2016 10:21:02 -0000
From: "guillerodriguez.dev at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: bug-classpath@gnu.org
Subject: [Bug classpath/70660] New: Autoconf problem when specifying
	--disable-tools
Date: Thu, 14 Apr 2016 10:21:01 +0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: classpath
X-Bugzilla-Component: classpath
X-Bugzilla-Version: 0.99
X-Bugzilla-Keywords: 
X-Bugzilla-Severity: normal
X-Bugzilla-Who: guillerodriguez.dev at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution: 
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: 
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status
	bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-70660-11049@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 209.132.180.131
X-BeenThere: bug-classpath@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
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: Thu, 14 Apr 2016 10:21:11 -0000

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D70660

            Bug ID: 70660
           Summary: Autoconf problem when specifying --disable-tools
           Product: classpath
           Version: 0.99
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
          Assignee: unassigned at gcc dot gnu.org
          Reporter: guillerodriguez.dev at gmail dot com
  Target Milestone: ---

There seems to be some problem with the autoconf macros in classpath-0.99 w=
hich
was not present in 0.98. Looks like passing --disable-tools to configure al=
so
disables the javac detection code, resulting in the following error:

=3D=3D=3D
$ ./configure --disable-tools
[...]
checking whether javac supports -J... ./configure: line 24943:
-J-Xmx768M: command not found
no
configure: error: conditional "GCJ_JAVAC" was never defined.
Usually this means the macro was only invoked conditionally
=3D=3D=3D

Note that this didn't happen in 0.98 (just re-checked) so it is probably du=
e to
autoconf changes between 0.98 and 0.99.=


From MAILER-DAEMON Thu Apr 14 06:36:05 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1aqed3-0003Nv-Dn
	for mharc-bug-classpath@gnu.org; Thu, 14 Apr 2016 06:36:05 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:43362)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gcc-bugzilla@gcc.gnu.org>) id 1aqed1-0003M6-Mi
	for bug-classpath@gnu.org; Thu, 14 Apr 2016 06:36:04 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gcc-bugzilla@gcc.gnu.org>) id 1aqecx-0002cZ-FU
	for bug-classpath@gnu.org; Thu, 14 Apr 2016 06:36:03 -0400
Received: from server1.sourceware.org ([209.132.180.131]:39762
	helo=sourceware.org) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gcc-bugzilla@gcc.gnu.org>) id 1aqecx-0002cP-5C
	for bug-classpath@gnu.org; Thu, 14 Apr 2016 06:35:59 -0400
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=from:to
	:subject:date:message-id:content-type:content-transfer-encoding
	:mime-version; q=dns; s=default; b=s2UEjkb0yCCNW5HWxPTnd1QpsJ9Mc
	wm7SXQ+C3OHfIu9+6iS52L8VYheK+HLoGqQPoQjI9yOcWuZfdhxQrT3Otz+vz5/C
	pJN31e9AXz68PlGMmsA1LD1JiTIf2pUHDdrxageAYy9dULkau7esm6TWsUKFGg8Z
	grD+gKuVXGDB30=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=from:to
	:subject:date:message-id:content-type:content-transfer-encoding
	:mime-version; s=default; bh=qHpbmnndNIOYLJOD9Khbars+418=; b=A/l
	Br2wmMLlTbqb09p7gvXNnESc1VG1yKYFmY94nipYrN40S+akUpTvLsrBEA660lYK
	IpjUjpv+flx8bQZid+g4+95Xl+qM67XDwbQIdwI8c6rSHwKGFYsWT5BDLNksbGZr
	kjh98Vd4U/Fy3WYdhS+R/04Ybkyir7tUdY9ujJ9k=
Received: (qmail 39703 invoked by uid 48); 14 Apr 2016 10:35:57 -0000
From: "guillerodriguez.dev at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: bug-classpath@gnu.org
Subject: [Bug classpath/70661] New: URLConnection throws incorrect exception
	if address cannot be resolved
Date: Thu, 14 Apr 2016 10:35:56 +0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: classpath
X-Bugzilla-Component: classpath
X-Bugzilla-Version: 0.99
X-Bugzilla-Keywords: 
X-Bugzilla-Severity: normal
X-Bugzilla-Who: guillerodriguez.dev at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution: 
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: 
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status
	bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-70661-11049@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 209.132.180.131
X-BeenThere: bug-classpath@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
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: Thu, 14 Apr 2016 10:36:05 -0000

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D70661

            Bug ID: 70661
           Summary: URLConnection throws incorrect exception if address
                    cannot be resolved
           Product: classpath
           Version: 0.99
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
          Assignee: unassigned at gcc dot gnu.org
          Reporter: guillerodriguez.dev at gmail dot com
  Target Milestone: ---

According to the API specification, the URLConnection.connect() method shou=
ld
throw an IOException if an error occurs. However in GNU Classpath if the
address can be resolved, an java.nio.channels.UnresolvedAddressException is
thrown instead. UnresolvedAddressException is a subclass of
IllegalArgumentException, not IOException, so this breaks the API contract.

Here is a sample test case:

=3D=3D=3D
import java.net.URL;
import java.net.URLConnection;

public class UnresolvedAddress
{
        public static void main(String args[]) throws Exception
        {
                URL url =3D new URL("http", "someinvalidsitename.com", 80,
"index.html");
                URLConnection connection =3D url.openConnection();
                connection.setUseCaches(false);
                connection.connect();
        }
}
=3D=3D=3D

This results in the following:

=3D=3D=3D
Exception in thread "main" java.nio.channels.UnresolvedAddressException
   at gnu.java.nio.SocketChannelImpl.connect(SocketChannelImpl.java:160)
   at gnu.java.net.PlainSocketImpl.connect(PlainSocketImpl.java:281)
   at java.net.Socket.connect(Socket.java:463)
   at java.net.Socket.connect(Socket.java:414)
   at
gnu.java.net.protocol.http.HTTPConnection.getSocket(HTTPConnection.java:721)
   at
gnu.java.net.protocol.http.HTTPConnection.getOutputStream(HTTPConnection.ja=
va:802)
   at gnu.java.net.protocol.http.Request.dispatch(Request.java:292)
   at
gnu.java.net.protocol.http.HTTPURLConnection.connect(HTTPURLConnection.java=
:219)
   at UnresolvedAddress.main(UnresolvedAddress.java:11)
=3D=3D=3D

Note that the JDK does the right thing here:

=3D=3D=3D
Exception in thread "main" java.net.UnknownHostException:
someinvalidsitename.com
        at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:175)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:385)
        at java.net.Socket.connect(Socket.java:546)
        at java.net.Socket.connect(Socket.java:495)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:178)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:427)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
        at sun.net.www.http.HttpClient.<init>(HttpClient.java:213)
        at sun.net.www.http.HttpClient.New(HttpClient.java:306)
        at sun.net.www.http.HttpClient.New(HttpClient.java:325)
        at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnect=
ion.java:955)
        at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.=
java:891)
        at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:=
809)
        at UnresolvedAddress.main(UnresolvedAddress.java:11)
=3D=3D=3D=


From MAILER-DAEMON Thu Apr 14 06:38:05 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1aqeez-0005oC-T8
	for mharc-bug-classpath@gnu.org; Thu, 14 Apr 2016 06:38:05 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:43827)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gcc-bugzilla@gcc.gnu.org>) id 1aqeex-0005lY-M2
	for bug-classpath@gnu.org; Thu, 14 Apr 2016 06:38:04 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gcc-bugzilla@gcc.gnu.org>) id 1aqeeu-0002yP-5s
	for bug-classpath@gnu.org; Thu, 14 Apr 2016 06:38:03 -0400
Received: from server1.sourceware.org ([209.132.180.131]:40511
	helo=sourceware.org) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gcc-bugzilla@gcc.gnu.org>) id 1aqeet-0002yF-T9
	for bug-classpath@gnu.org; Thu, 14 Apr 2016 06:38:00 -0400
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=from:to
	:subject:date:message-id:in-reply-to:references:content-type
	:content-transfer-encoding:mime-version; q=dns; s=default; b=sjl
	S1ilvww+p2uka5WjT1Ek30Fxb43oxjoSPMgjlVQKl5D/N3Z8Rfp3Vviz+x1NK2e3
	SPk0axGXWwpzACVHLKKes/3JMdQjNJiC/75MLdXFG6gZBbZO7EoOfy2e/yMjhKN+
	jSdKDw+bu0lY5dAU/ojzFK1ekO/cqudqR3wJvM+s=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=from:to
	:subject:date:message-id:in-reply-to:references:content-type
	:content-transfer-encoding:mime-version; s=default; bh=MziztRq18
	gsig/qXTltJIXKzOxc=; b=aruFiszB3380C1r537lNYfknl29feXAz2jz0gW6r9
	qxU5bVgLvFuDOqm25fgiaYtCdRDKVdqOWVy1KeaFM9yW1RXTgwBl+v2n+EvTb4Gj
	46Bqz1nCx78COheWSdbK54Uvfgwc7jtOu/n8VZpty3aZVVnwU04o3vTcXV/dJ2Js
	ls=
Received: (qmail 45862 invoked by uid 48); 14 Apr 2016 10:37:58 -0000
From: "guillerodriguez.dev at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: bug-classpath@gnu.org
Subject: [Bug classpath/70661] URLConnection throws incorrect exception if
	address cannot be resolved
Date: Thu, 14 Apr 2016 10:37:58 +0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: classpath
X-Bugzilla-Component: classpath
X-Bugzilla-Version: 0.99
X-Bugzilla-Keywords: 
X-Bugzilla-Severity: normal
X-Bugzilla-Who: guillerodriguez.dev at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution: 
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: 
X-Bugzilla-Changed-Fields: 
Message-ID: <bug-70661-11049-MvVHTFDCn3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70661-11049@http.gcc.gnu.org/bugzilla/>
References: <bug-70661-11049@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 209.132.180.131
X-BeenThere: bug-classpath@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
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: Thu, 14 Apr 2016 10:38:04 -0000

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D70661

--- Comment #1 from Guillermo Rodriguez <guillerodriguez.dev at gmail dot c=
om> ---
"if the address can be resolved.." should have been "if the address can't be
resolved".=


From MAILER-DAEMON Thu Apr 14 07:11:33 2016
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1aqfBN-0003hJ-2h
	for mharc-bug-classpath@gnu.org; Thu, 14 Apr 2016 07:11:33 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:59587)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gcc-bugzilla@gcc.gnu.org>) id 1aqfBG-0003Z0-Hd
	for bug-classpath@gnu.org; Thu, 14 Apr 2016 07:11:32 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gcc-bugzilla@gcc.gnu.org>) id 1aqfBC-00077G-6b
	for bug-classpath@gnu.org; Thu, 14 Apr 2016 07:11:26 -0400
Received: from server1.sourceware.org ([209.132.180.131]:45072
	helo=sourceware.org) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gcc-bugzilla@gcc.gnu.org>) id 1aqfBB-000774-VH
	for bug-classpath@gnu.org; Thu, 14 Apr 2016 07:11:22 -0400
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=from:to
	:subject:date:message-id:content-type:content-transfer-encoding
	:mime-version; q=dns; s=default; b=a2ICnGEbNuTFT8AHjTlyZj2ejlDWr
	o3el+MDnQdadjqHPcFSyPiZeX5xH0sRSJxGwqr/4sp8L5OId07GD7tgyNOo6ihbT
	DLuMpgCd+PWqeK1LtRk+DCfx+A57FnRKdFTF7fbpZipTPd/Yl3/ewr2N3GfrtlmY
	Qg3v3VETYoUKZM=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=from:to
	:subject:date:message-id:content-type:content-transfer-encoding
	:mime-version; s=default; bh=g4MfnRHDDbTO73pKSvEKj6yl0FA=; b=DjG
	LYq3BY3R4kkLb14/0Ykox3BQtxabu9mwn3iXVBHX2Mr8Ib5lJzMFmDgmUsu5uvmg
	ZcKO2wnzfgd0QqFUmgGM35+FM+2NIJCWn/0KnPfqQfBK02uBbFIcqU1G7M6cB2vX
	KrvsXeAOwAFpuDv/JNMK5G/bcLwwY3JhtmRTBYK4=
Received: (qmail 111444 invoked by uid 48); 14 Apr 2016 11:11:21 -0000
From: "guillerodriguez.dev at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: bug-classpath@gnu.org
Subject: [Bug classpath/70663] New: Component.dispatchEvent ignores
	ActionEvents
Date: Thu, 14 Apr 2016 11:11:20 +0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: classpath
X-Bugzilla-Component: classpath
X-Bugzilla-Version: 0.99
X-Bugzilla-Keywords: 
X-Bugzilla-Severity: normal
X-Bugzilla-Who: guillerodriguez.dev at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution: 
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: 
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status
	bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-70663-11049@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 209.132.180.131
X-BeenThere: bug-classpath@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
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: Thu, 14 Apr 2016 11:11:32 -0000

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D70663

            Bug ID: 70663
           Summary: Component.dispatchEvent ignores ActionEvents
           Product: classpath
           Version: 0.99
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
          Assignee: unassigned at gcc dot gnu.org
          Reporter: guillerodriguez.dev at gmail dot com
  Target Milestone: ---

The API specification for java.awt.Component.dispatchEvent() says: "Dispatc=
hes
an event to this component or one of its sub components. Calls processEvent
before returning for 1.1-style events which have been enabled for the
Component."

According to this description, the attached sample code should output this:

  Dispatching action event
  processEvent called

This works as expected on OpenJDK. However in GNU Classpath thw result is:

  Dispatching action event

i.e. the processEvent() method is never called.

This happens because the eventTypeEnabled() method in Classpath's
implementation of Component does not know about action events and will alwa=
ys
return false for them, even if they have been enabled.

This breaks lightweight components that generate action events by themselve=
s.

Sample code follows.

=3D=3D=3D
import java.awt.*;
import java.awt.event.ActionEvent;

public class Sample extends Component
{
    protected void processEvent(AWTEvent e)
    {
        System.out.println("processEvent called");
        super.processEvent(e);
    }

    public void simulateActionEvent()
    {
        System.out.println("Dispatching action event");
        enableEvents(AWTEvent.ACTION_EVENT_MASK);
        ActionEvent ev =3D new ActionEvent(this,
ActionEvent.ACTION_PERFORMED, "test");
        dispatchEvent(ev);
    }

    public static void main(String args[])
    {
        Sample sample =3D new Sample();
        sample.simulateActionEvent();
    }
}
=3D=3D=3D=


