public inbox for java-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Marco Trudel <mtrudel@gmx.ch>
To: java-patches@gcc.gnu.org
Subject: Re: FYI: Win32 InetAddress fix
Date: Mon, 02 Oct 2006 11:22:00 -0000	[thread overview]
Message-ID: <4520F672.10509@gmx.ch> (raw)
In-Reply-To: <20061002105534.GB4239@redhat.com>

Gary Benson wrote:
> Marco Trudel wrote:
>
> <bigsnip>
> 
> This commit should fix the build failure and the NullPointerException.
> 
> FWIW what happened with all the different patches was that I wrote
> http://gcc.gnu.org/ml/java-patches/2006-q3/msg00386.html thinking it
> would be a stepping stone to a solution, but inbetween me posting it
> to the list and Tom saying to check it in I realised that all that
> code would be trashed anyway so I didn't bother committing it.
> 
> As far as the other patches go the only outstanding one is
> http://gcc.gnu.org/ml/java-patches/2006-q3/msg00486.html (though I
> need to remake it because of this commit).  That can't be committed
> before the branch because the Posix part has a lot of conditional
> stuff which might be broken.  I'll be committing that just as soon
> as we branch.

When will we branch? Few days? Weeks? Fix date?
Are we talking about the 4.2 release?

Marco

> Cheers,
> Gary
> 
> 
> ------------------------------------------------------------------------
> 
> Index: ChangeLog
> ===================================================================
> --- ChangeLog	(revision 117367)
> +++ ChangeLog	(working copy)
> @@ -1,3 +1,9 @@
> +2006-10-02  Gary Benson  <gbenson@redhat.com>
> +
> +	* java/net/InetAddress.java
> +	(checkConnect): Reinstated.
> +	(loopbackAddress): Ensure initialized from non-null object.
> +
>  2006-09-30  Keith Seitz  <keiths@redhat.com>
>  
>  	* include/java-interp.h (prepared): Change type to pc_t.
> Index: java/net/InetAddress.java
> ===================================================================
> --- java/net/InetAddress.java	(revision 117367)
> +++ java/net/InetAddress.java	(working copy)
> @@ -101,6 +101,8 @@
>      try
>        {
>  	LOCALHOST = getByAddress("localhost", new byte[] {127, 0, 0, 1});
> +	// Some soon-to-be-removed native code synchronizes on this.
> +	loopbackAddress = LOCALHOST;
>        }
>      catch (UnknownHostException e)
>        {
> @@ -793,7 +795,7 @@
>    static native String getLocalHostname();
>  
>    // Some soon-to-be-removed native code synchronizes on this.
> -  static InetAddress loopbackAddress = LOCALHOST;
> +  static InetAddress loopbackAddress;
>    
>    // Some soon-to-be-removed code uses this old and broken method.
>    InetAddress(byte[] ipaddr, String hostname)
> @@ -805,9 +807,13 @@
>        family = getFamily(ipaddr);
>    }
>  
> -  // Some soon-to-be-removed native code uses this old method.
> +  // Some soon-to-be-removed native code uses these old methods.
>    private static InetAddress[] allocArray (int count)
>    {
>      return new InetAddress [count];
>    }  
> +  private static SecurityException checkConnect (String hostname)
> +  {
> +    return null;
> +  }
>  }

  reply	other threads:[~2006-10-02 11:22 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-04 14:15 RFC: Untested Win32 InetAddress tweak Gary Benson
2006-09-06 16:58 ` Tom Tromey
2006-09-07  7:36   ` Gary Benson
2006-10-01 17:36 ` Marco Trudel
2006-10-01 18:00   ` Mohan Embar
2006-10-02  7:19     ` Marco Trudel
2006-10-02 10:55       ` FYI: Win32 InetAddress fix Gary Benson
2006-10-02 11:22         ` Marco Trudel [this message]
2006-10-02 17:43           ` Tom Tromey
2006-10-03 10:35         ` FYI: Win32 InetAddress fix (really) Gary Benson
2006-10-03 15:10           ` David Daney
2006-10-03 16:55             ` Andrew Haley
2006-10-03 17:23               ` David Daney
2006-10-04  8:37                 ` Gary Benson
2006-10-03 15:30           ` Marco Trudel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4520F672.10509@gmx.ch \
    --to=mtrudel@gmx.ch \
    --cc=java-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).