Socket InputStream.available may return a positive value after shutdown

2011-01-25 Thread Jing LV
Hello, I am using java.net.Socket and find an strange behaviour. If Socket inputstream is shutdown, and there was still some data remaining, its available() method may still return a positive value. I checked with the java spec, and the document of Socket.shutdownInput() said: "Places the input st

Re: Socket InputStream.available may return a positive value after shutdown

2011-02-17 Thread Jing LV
于 2011-1-26 20:32, Alan Bateman 写道: Jing LV wrote: Hello, I am using java.net.Socket and find an strange behaviour. If Socket inputstream is shutdown, and there was still some data remaining, its available() method may still return a positive value. I checked with the java spec, and the

Re: Socket InputStream.available may return a positive value after shutdown

2011-02-22 Thread Jing LV
于 2011-2-17 17:30, Alan Bateman 写道: Jing LV wrote: Thanks Alan! I try to follow this issue but has no luck on bugs.sun.com with the number 7014860. Am I miss something? I suspect there is a problem on bugs.sun.com as it doesn't seem to be showing any bugs. I noticed a "main

Does OpenJDK support bitmap image with JarURLConnection?

2011-03-01 Thread Jing LV
should return image/bmp but it does not. I see we may add image/bmp support in the windows\lib\content-types.properties to make the testcase pass. However I am not sure if OpenJDK do want to support it, or there is some reason why OpenJDK don't? -- Best Regards, Jimmy, Jing LV

URI ignores invalid ipv6 address while parsing authority

2011-03-01 Thread Jing LV
And if we print uri.getAuthority() we'll get a null value. I think the problem is caused by ipv6 address, which is enclosed with "[]", but a normal hostname does not. Any comments? -- Best Regards, Jimmy, Jing LV

Re: Does OpenJDK support bitmap image with JarURLConnection?

2011-03-08 Thread Jing LV
was > 1999, when PNG was added! I don't have any specific objection to adding it. > > -Chris. > > Hi Chris, Thanks for reply. So as we see no objection for this issue, would someone help to raise a bug in the bug system? So that we can apply the patch and fix this 12-year problem

Re: URI ignores invalid ipv6 address while parsing authority

2011-03-08 Thread Jing LV
于 2011-3-1 20:44, Chris Hegarty 写道: > On 03/ 1/11 09:58 AM, Jing LV wrote: >> Hello, >> >> According to authority component RFC2396, if host name is a domain name >> there should be no "[" and "]". However if we put a hostname like >> "[

Re: Does OpenJDK support bitmap image with JarURLConnection?

2011-04-26 Thread Jing LV
于 2011-3-9 22:32, Chris Hegarty 写道: > On 08/03/2011 09:13, Jing LV wrote: >> .. >> Hi Chris, >> >> Thanks for reply. So as we see no objection for this issue, would >> someone help to raise a bug in the bug system? So that we can apply the >> patch and

Re: URI ignores invalid ipv6 address while parsing authority

2011-04-26 Thread Jing LV
于 2011-3-1 20:44, Chris Hegarty 写道: > On 03/ 1/11 09:58 AM, Jing LV wrote: >> Hello, >> >> According to authority component RFC2396, if host name is a domain name >> there should be no "[" and "]". However if we put a hostname like >> "[

Re: Socket InputStream.available may return a positive value after shutdown

2011-04-27 Thread Jing LV
于 2011-2-22 17:38, Alan Bateman 写道: Jing LV wrote: Thanks Alan - any luck till now? Yes, it's there: http://bugs.sun.com/view_bug.do?bug_id=7014860 Hello, Currently I don't see any patch available so I am trying to create one by myself. I see the problem

Re: Socket InputStream.available may return a positive value after shutdown

2011-07-06 Thread Jing LV
Hello, Alan (or anyone else), do we have time to discuss these postponed defects? Or do you have a outlook for this? Thank you. 于 2011-4-27 18:35, Alan Bateman 写道: Jing LV wrote: Hello, Currently I don't see any patch available so I am trying to create one by myself. I se

Re: Socket InputStream.available may return a positive value after shutdown

2011-07-18 Thread Jing LV
ee the extent of the changes. -Chris. we don't know how custom SocketImpls might behave. Overall the risk does seem low. -Alan. -- Best Regards, Jimmy, Jing LV

Re: Socket InputStream.available may return a positive value after shutdown

2011-07-21 Thread Jing LV
Hi, Thank you Chris! Would you please send the link when you have some progress? 于 2011-7-18 18:00, Chris Hegarty 写道: On 07/18/11 09:09 AM, Jing LV wrote: Hi Chris, Alan, Thanks for reply. I am looking for a conclusion and solution for this issue. If I understand correctly, it'

Re: Socket InputStream.available may return a positive value after shutdown

2011-08-15 Thread Jing LV
is the bug being used to fix this issue. -Chris. - Michael -- Best Regards, Jimmy, Jing LV

Re: Does OpenJDK support bitmap image with JarURLConnection?

2011-08-17 Thread Jing LV
Hi Chris, It's been quite a while, do you think this fix is OK to you? If so, can you apply it to the repostory? Thanks! 于 2011-4-26 18:43, Jing LV 写道: > 于 2011-3-9 22:32, Chris Hegarty 写道: >> On 08/03/2011 09:13, Jing LV wrote: >>> .. >>> Hi Chris, >>&