Re: Code Review Request: 7090158 Networking Libraries don't build with javac -Werror

2011-09-16 Thread Chris Hegarty
Socket.java has some commented out code. I think it should just be removed, right? I'm guessing this is the only change to the previous webrev? If so, it should be good to go. I don't think you need to re-generate a webrev for the above trivial change. -Chris On 09/16/11 06:17 PM, Kurchi Ha

Re: Code Review Request: 7090158 Networking Libraries don't build with javac -Werror

2011-09-16 Thread Kurchi Hazra
Updated webrev: http://cr.openjdk.java.net/~sherman/kurchi/7090158/webrev/ Thanks, Kurchi On 9/14/2011 12:42 PM, chris hegarty wrote: Kurchi, The problem here is that due to a bug in the compiler, CR 7090499, we are not seeing raw type warnings for anonymous inner classes. When Maurizio fi

Re: Code Review Request: 7090158 Networking Libraries don't build with javac -Werror

2011-09-14 Thread Weijun Wang
234 l = new ArrayList<>(); Do we have a consensus on whether diamond can be used here? i.e. assignment not on declaration. Waiting for someone's input on this. In retrospect, I feel this is not exactly how the diamond operator is meant to be used when I refer to http://download.oracle.com/java

Re: Code Review Request: 7090158 Networking Libraries don't build with javac -Werror

2011-09-14 Thread chris hegarty
Kurchi, The problem here is that due to a bug in the compiler, CR 7090499, we are not seeing raw type warnings for anonymous inner classes. When Maurizio fixes this bug it is very likely that other areas of the jdk where Sasha enabled -Werror will break the build. If you like you can comple

Re: Code Review Request: 7090158 Networking Libraries don't build with javac -Werror

2011-09-14 Thread Kurchi Hazra
3. java/net/DatagramSocket.java and java/net/MulticastSocket.java have some real code changes around bind(). Maybe they should go to another fix? I think there is some merging problem in my workspace. I will probably start with an updated copy of these files and insert my changes in them. S

Re: Code Review Request: 7090158 Networking Libraries don't build with javac -Werror

2011-09-14 Thread Tom Hawtin
On 14/09/2011 16:46, Kurchi Hazra wrote: + Class[] cl = new Class[2]; + cl[0] = SocketAddress.class; + cl[1] = Integer.TYPE; + Class clazz = impl.getClass(); I have to say, I think that would read better as: Class[] cl = { SocketAddress.class, int.class }; Class clazz = impl

Re: Code Review Request: 7090158 Networking Libraries don't build with javac -Werror

2011-09-14 Thread Kurchi Hazra
I remember having made this change as follows: -bash-3.00$ hg diff src/share/classes/java/net/Socket.java diff --git a/src/share/classes/java/net/Socket.java b/src/share/classes/java/net/Socket.java --- a/src/share/classes/java/net/Socket.java +++ b/src/share/classes/java/net/Socket.java @@ -459

Re: Code Review Request: 7090158 Networking Libraries don't build with javac -Werror

2011-09-14 Thread Chris Hegarty
Maurizio and I noticed another issue in java.net.Socket > Class[] cl = new Class[2]; should generate a warning, but does not. Maurizio filed CR 7090499 against this. It is a compiler bug. It should be: Class[] cl = new Class[2]; It is best that we fix this before pushing as it will break the

Re: Code Review Request: 7090158 Networking Libraries don't build with javac -Werror

2011-09-14 Thread Sean Mullan
On 9/13/11 10:55 PM, Weijun Wang wrote: > I apply the patch to my local repository and do a clean rebuild of > jdk-only. It shows 1 error and 92 warnings in javax and stopped. Most in > src/share/classes/javax/xml/crypto/dsig and I remember Sean said it's > not easy to remove all warnings there

Re: Code Review Request: 7090158 Networking Libraries don't build with javac -Werror

2011-09-14 Thread Chris Hegarty
Thanks for reviewing this Max, I also went through the changes. MessageHeader.filterAndAddHeaders() and HttpURLConnection.getRequestproperties() also confused me. Essentially this never work quite right. I had Maurizio ( javac guy ) look at the old code with me and we figured out that the gene

Re: Code Review Request: 7090158 Networking Libraries don't build with javac -Werror

2011-09-14 Thread Alan Bateman
Weijun Wang wrote: : 3. java/net/DatagramSocket.java and java/net/MulticastSocket.java have some real code changes around bind(). Maybe they should go to another fix? I suspect there may be a merge issue here as it looks like it is undoing recent changes that Michael pushed. -Alan.

Re: Code Review Request: 7090158 Networking Libraries don't build with javac -Werror

2011-09-13 Thread Weijun Wang
On 09/14/2011 12:14 PM, Kurchi Hazra wrote: Updated webrev : http://cr.openjdk.java.net/~weijun/7090158/webrev.00/. This should build correctly. Yes, it does! Some comments: 1. make/java/Makefile has no real change 2. make/javax/others/Makefile has only a new commented line 3. java/net/Da

Re: Code Review Request: 7090158 Networking Libraries don't build with javac -Werror

2011-09-13 Thread Kurchi Hazra
Updated webrev : http://cr.openjdk.java.net/~weijun/7090158/webrev.00/. This should build correctly. Thanks, Kurchi On 9/13/2011 7:55 PM, Weijun Wang wrote: I apply the patch to my local repository and do a clean rebuild of jdk-only. It shows 1 error and 92 warnings in javax and stopped. Most

Re: Code Review Request: 7090158 Networking Libraries don't build with javac -Werror

2011-09-13 Thread Weijun Wang
I apply the patch to my local repository and do a clean rebuild of jdk-only. It shows 1 error and 92 warnings in javax and stopped. Most in src/share/classes/javax/xml/crypto/dsig and I remember Sean said it's not easy to remove all warnings there because the codes are shared between JDK and so

Re: Code Review Request: 7090158 Networking Libraries don't build with javac -Werror

2011-09-13 Thread Alan Bateman
Kurchi Hazra wrote: Something went wrong in the pasting. Can you check if this works fine: http://cr.openjdk.java.net/~chegar/7090158/webrev/ Yes, this webrev has what I expected to see. -Alan

Re: Code Review Request: 7090158 Networking Libraries don't build with javac -Werror

2011-09-13 Thread Kurchi Hazra
Something went wrong in the pasting. Can you check if this works fine: http://cr.openjdk.java.net/~chegar/7090158/webrev/ On 9/13/2011 12:07 PM, Alan Bateman wrote: Kurchi Hazra wrote: Hi, This is an attempt to remove all build warnings that are related to networking in jdk. This work conta

Re: Code Review Request: 7090158 Networking Libraries don't build with javac -Werror

2011-09-13 Thread Alan Bateman
Kurchi Hazra wrote: Hi, This is an attempt to remove all build warnings that are related to networking in jdk. This work contains (a) Small changes in java files to remove already existing warnings (b) Small changes in Makefiles to prevent re-introduction of such warnings. Webrev: http:/

Code Review Request: 7090158 Networking Libraries don't build with javac -Werror

2011-09-13 Thread Kurchi Hazra
Hi, This is an attempt to remove all build warnings that are related to networking in jdk. This work contains (a) Small changes in java files to remove already existing warnings (b) Small changes in Makefiles to prevent re-introduction of such warnings. Webrev: http://cr.openjdk.java.net/~c