Re: [classlib][luni]HttpURLConnection.getRequestProperty(String) and HttpURLConnection.getRequestProperties() should throw IllegalStateException while connected or not?

2006-11-01 Thread Spark Shen
Leo Li 写道: Hi, all While cleaning the jira 1687, I found that the spec says if connected, both functions should throw IllegalStateException, while RI throws it in HttpURLConnection.getRequestProperties() but HttpURLConnection.getRequestProperty(String) not. Although personally I would like not

[classlib][luni]HttpURLConnection.getRequestProperty(String) and HttpURLConnection.getRequestProperties() should throw IllegalStateException while connected or not?

2006-11-01 Thread Leo Li
Hi, all While cleaning the jira 1687, I found that the spec says if connected, both functions should throw IllegalStateException, while RI throws it in HttpURLConnection.getRequestProperties() but HttpURLConnection.getRequestProperty(String) not. Although personally I would like not to