Re: [cp-patches] FYI: Cleanup white space in gnu/java/net/protocol/http/LimitedLengthInputStream.java

2008-07-12 Thread David Daney
David Daney wrote: In preparation for my next change, I committed this cleanup to gnu/java/net/protocol/http/LimitedLengthInputStream.java. Said change is not needed, the file is perfect as is, so I will leave it just as the whitespace cleanup. David Daney

[cp-patches] FYI: Cleanup white space in gnu/java/net/protocol/http/LimitedLengthInputStream.java

2008-07-12 Thread David Daney
In preparation for my next change, I committed this cleanup to gnu/java/net/protocol/http/LimitedLengthInputStream.java. 2008-07-12 David Daney <[EMAIL PROTECTED]> * gnu/java/net/protocol/http/LimitedLengthInputStream.java: Clean up white space in entire file. (handleClose):

Re: [cp-patches] RFC: add a copy of gnu/java/security/action/GetPropertyAction into sun/security/action

2008-06-02 Thread David Daney
o use the sun/security variant and remove the gnu/java/security one. Opinions? Since we already have some sun.* packages, it seems fine to add more. I would change everything over to refer to this new class and delete the gnu/java/security one. Just my $0.02, David Daney 2008-06-03 R

Re: [cp-patches] FYI: PR36147 Fix post-toString use of CPStringBuilder

2008-05-11 Thread David Daney
ave to allocate another array, we gain nothing over java.lang.StringBuilder other than making the code more confusing. I am uncomfortable with this change as well as the use of CPStringBuilder that makes it necessary. Am I missing something here? David Daney

Re: [cp-patches] RFC: Move exception handling out of common case: java.util.Vector/ArrayList

2008-04-25 Thread David Daney
re both reasons to apply it. Thanks, David Daney

Re: [cp-patches] RFC: changes to java.lang.Integer, Long...

2008-04-14 Thread David Daney
you point to any benchmarks where this helps? Thanks, David Daney

Re: [cp-patches] FYI: Add CPStringBuffer

2008-03-01 Thread David Daney
David Daney wrote: Andrew John Hughes wrote: This adds our new non-copying variant of StringBuilder, which I've called CPStringBuffer. It should be used internally where we can get away with a non-synchronized non-copying string buffer. ChangeLog: I missed the change log par

Re: [cp-patches] FYI: Add CPStringBuffer

2008-02-29 Thread David Daney
String constructor. In general I like this, but having to use reflection to invoke the string constructor I think should be avoided. David Daney

Re: [cp-patches] RFC: Abstract StringBuilder and StringBuffer

2008-02-19 Thread David Daney
. Other than that, it seems like a good idea. David Daney

Re: [cp-patches] Additional buffering in OutputStreamWriter

2007-08-02 Thread David Daney
ntime to compensate for problems in an application. The applications should add buffering themselves when appropriate. David Daney

Re: [cp-patches] Re: RFC: native/jni/java-nio/gnu_java_nio_VMChannel.c

2007-06-27 Thread David Daney
return avail; } } } #endif JCL_ThrowException (env, IO_EXCEPTION, strerror (errno)); } Perhaps: if ((errno == ENOTTY) && (fstat (fd, &statBuffer) == 0) && S_ISREG (statBuffer.st_mode)) { . . . } David Daney

Re: [cp-patches] Gnu classpath permission patch ?

2007-05-22 Thread David Daney
u believe a check is missing? David Daney

Re: [cp-patches] RFC: Socket fix

2007-03-05 Thread David Daney
just call impl.create() from the Socket constructor? David Daney Regards, Jeroen Index: java/net/Socket.java === RCS file: /cvsroot/classpath/classpath/java/net/Socket.java,v retrieving revision 1.61 diff -u -r1.61 Socket.java ---

Re: [cp-patches] FYI: Permission minor fix

2007-01-09 Thread David Daney
7;+'? The compiler converts this to String[Buffer|Builder] when it generates the byte code. IMO this patch makes the code much more difficult to understand with *no* improvement in efficiency. David Daney

Re: [cp-patches] RFC: InputStreamReader and OutputStreamWriter cleanup

2007-01-04 Thread David Daney
David Daney wrote: Roman Kennke wrote: Hi again, On most free JVMs that I know of (libgcj), array accesses are much faster than the corresponding actions on a java.nio.Buffer. I don't think so. The normal bytebuffer is also only an array. The accessor methods should not make

Re: [cp-patches] RFC: InputStreamReader and OutputStreamWriter cleanup

2007-01-04 Thread David Daney
the end of next week. David Daney.

Re: [cp-patches] RFC: InputStreamReader and OutputStreamWriter cleanup

2007-01-04 Thread David Daney
ce is that, in gcj for example, an array access is translated in to a machine instruction that directly accesses the desired element. Access through a java.nio.Buffer involves at least one function call which is a much heavier weight operation. David Daney

Re: [cp-patches] RFC: InputStreamReader and OutputStreamWriter cleanup

2007-01-04 Thread David Daney
that on libgcj that there is no difference on a benchmark that moves a lot of data through the changed code, then I withdraw my objection. David Daney

[cp-patches] FYI: Genericize gnu.java.net.protocol.http.* a bit more...

2006-12-21 Thread David Daney
Tom Tromey already did the heavy lifting here. This patch just tweaks it a bit. 2006-12-21 David Daney <[EMAIL PROTECTED]) * gnu/java/net/protocol/http/Headers.java: Update imports. Implement Iterable. (iterator): Make public. * gnu/java/net/protocol/http/Request.j

[cp-patches] FYI: Use generics internally to some HTTP code.

2006-12-14 Thread David Daney
In the spirit of using the new generic type capability of Classpath, and because I already did it while looking at the bug in Collecions, I offer up this nice patch. In two of the HTTP support classes I converted a couple of things to use generics. 2006-12-14 David Daney <[EMAIL PROTEC

[cp-patches] FYI: Fix bad cast in Collections.UnmodifiableEntrySet.toArray

2006-12-13 Thread David Daney
This fixes the mauve regression noted by Paul Jenner for the java.net.URLConnection.getHeaderFields test. A case of slightly over zealous genericization. 2006-12-13 David Daney <[EMAIL PROTECTED]> * java/lang/Collections.java (UnmodifiableEntrySet.toArray): Fix bad

Re: [cp-patches] java.util.Arrays fix

2006-12-13 Thread David Daney
Casey Marshall wrote: On Dec 13, 2006, at 12:21 PM, David Daney wrote: Casey Marshall wrote: On Dec 13, 2006, at 12:56 AM, Marco Trudel wrote: Hey guys java.util.Arrays.binarySearch(Object[] a, Object key, Comparator c) exchanges a[i] and key, this can lead to ClassCastExceptions as

Re: [cp-patches] java.util.Arrays fix

2006-12-13 Thread David Daney
there is no performance penalty, then we should follow the behavior of the RI. David Daney.

Re: [cp-patches] FYI: Use exception chaining in javax.net.ssl.SSLSocketFactory.getDefault()

2006-12-11 Thread David Daney
Jeroen Frijters wrote: David Daney wrote: Jeroen Frijters wrote: throw new RuntimeException("error instantiating default socket factory: " - + ex.toString()); That sounds more like an InternalError than the sup

Re: [cp-patches] FYI: Use exception chaining in javax.net.ssl.SSLSocketFactory.getDefault()

2006-12-11 Thread David Daney
try That sounds more like an InternalError than the super-generic RuntimeException. David Daney

[cp-patches] FYI: Fix a comment in VMChannel.c

2006-12-08 Thread David Daney
I just committed this to fix my previous commit. 2006-12-08 David Daney <[EMAIL PROTECTED]> * native/jni/java-nio/gnu_java_nio_VMChannel.c (is_non_blocking_fd): Fix comment. Index: native/jni/java-nio/gnu_java_nio_VMCha

[cp-patches] FYI: Mention URLConnection.setReadTimeout in NEWS.

2006-12-08 Thread David Daney
I just committed this: 2006-12-08 David Daney <[EMAIL PROTECTED]> * NEWS: Mention URLConnection.[get|set]ReadTimeout.

Re: [cp-patches] RFC: Add readTimeout methods to URLConnection

2006-12-08 Thread David Daney
David Daney wrote: This patch adds the missing [get|set]ReadTimeout methods to java.net.URLConnection. It is lightly tested, but I will create some mauve tests for it. If there are no objections, I will commit it after a couple more of days of testing. 2006-12-02 David Daney <[EM

Re: [cp-patches] Patch: Fix socket connection and read timeouts.

2006-12-08 Thread David Daney
David Daney wrote: My new mauve test for the HTTP timeout patch I posed earlier this week was failing miserably for me with jamvm/FC6-x86_64. I turns out the the native socket code was slightly lacking. This patch fixes it up some. I will commit both this patch and the HTTP timeout patch

[cp-patches] Patch: Fix socket connection and read timeouts.

2006-12-08 Thread David Daney
of testing and if no objections are raised. 2006-12-08 David Daney <[EMAIL PROTECTED]> * native/jni/java-nio/gnu_java_nio_VMChannel.c (is_non_blocking_fd): New method. (Java_gnu_java_nio_VMChannel_read__ILjava_nio_ByteBuffer_2): Throw SocketTimeoutException if a blocking

Re: [cp-patches] Fix interrupted read/writes

2006-12-04 Thread David Daney
io_connect (int fd, const struct sockaddr *addr, socklen_t addrlen) { int retcode; do { retcode = connect (fd, addr, addrlen); } while (retcode == EINTR); return retcode; } Except that you should probably also check if the thread was interrupted as the original patch does for read and write. David Daney.

[cp-patches] RFC: Add readTimeout methods to URLConnection

2006-12-03 Thread David Daney
This patch adds the missing [get|set]ReadTimeout methods to java.net.URLConnection. It is lightly tested, but I will create some mauve tests for it. If there are no objections, I will commit it after a couple more of days of testing. 2006-12-02 David Daney <[EMAIL PROTEC

Re: [cp-patches] FYI: Epoll and DatagramSocket bugs

2006-09-21 Thread David Daney
nnel.send(buf, new InetSocketAddress(remote, port)); + } +catch (InterruptedIOException ioe) + { +// Ignore; interrupted system call. + } + } } How does the while loop exit? Just wondering, David Daney

[cp-patches] FYI: Fix HTTPURLConnection (PR classpath/28661)

2006-09-20 Thread David Daney
I just committed the fix for said PR. A test for this was also added to mauve. 2006-09-20 David Daney <[EMAIL PROTECTED]> PR classpath/28661 * gnu/java/net/protocol/http/HTTPURLConnection.java (connect): Add default content-type for POST method. Index: gnu/ja

Re: [cp-patches] RFC: epoll-based selector

2006-09-18 Thread David Daney
ith ENOSYS. Also I am running gcj/libgcj cross compiler and do not know how this patch will interact with libgcj. Well those are my concerns. I guess if things get broken by this we can add a configure switch to manually disable it. David Daney.

[cp-patches] Re: FYI: PR 28580 - HTTP fixes...

2006-08-12 Thread David Daney
Tom Tromey wrote: "David" == David Daney <[EMAIL PROTECTED]> writes: David> Do we want to bring this into libgcj before this would be David> imported also? It is fine by me if you want to do this. However, if we're going to import 0.92 it might be fri

[cp-patches] FYI: PR 28580 - HTTP fixes...

2006-08-11 Thread David Daney
would hang (instead of immediately returning EOF). Earlier today I committed a mauve testcase for this problem. Do we want to bring this into libgcj before this would be imported also? 2006-08-11 David Daney <[EMAIL PROTECTED]> PR classpath/28580 * gnu/java/net/pr

Re: [cp-patches] RFC: Clone fix for gnu.java.security.OID

2006-07-12 Thread David Daney
ood to me. I beleive this is the prefered idiom for clone() in many cases. It seems that this is probably one of them, but not being that familiar with this class I cannot say for sure. David Daney.

Re: [cp-patches] Patch: FYI: implement guessContentTypeFromStream

2006-05-25 Thread David Daney
refer a java implementation, but don't really have strong feelings one way or the other. David Daney

Re: [cp-patches] RFC: local (unix-domain) sockets

2006-04-13 Thread David Daney
effort in this area. David Daney.

Re: [cp-patches] RFC: gnu.regexp: subexpressions within RETokenLookAhead

2006-03-14 Thread David Daney
nt i = start[0] + start[sub]; i < start[0] + end[sub]; i++) + sb.append(matchedCharIndexed.charAt(i)); + return sb.toString(); + } Use StringBuilder instead of StringBuffer. David Daney.

Re: [cp-patches] RFC: Headers fixlet

2006-03-07 Thread David Daney
Wolfgang Baer wrote: Hi David, David Daney wrote: Wolfgang Baer wrote: Hi, I wrote mauve tests for the various HttpURLConnection request properties methods and notices some minor bugs in the new Headers implementation. The patch fixes these and adds documentation to this class in more

Re: [cp-patches] RFC: Headers fixlet

2006-03-06 Thread David Daney
putAll() is broken, then the change should be made. But change just for change's sake I am not so sure. David Daney

Re: [cp-patches] FYI: HTTPConnection.Pool fixlet

2006-03-04 Thread David Daney
This should solve the issue Christian was seeing. Sorry about that :( Your fix is obviously correct. David Daney.

[cp-patches] FYI: (was: RFC/RFT: HTTP header handling rewrite.)

2006-03-03 Thread David Daney
David Daney wrote: PR libgcj/26487 shows problems with our existing header handling. I hacked up the attached patch, which needs more testing (please test it!) The basic problem is that the headers were being held in a map which scrambled them up if there were more than one header of the same

Re: [cp-patches] RFC/RFT: HTTP header handling rewrite.

2006-03-03 Thread David Daney
(returning the header names in their original case in keySet() etc). In order for the map to be at all useful, I would have to agree. However if we mimic Sun's brilliant implementation (as shown by Wolfgang's testing), we can (and must) just do it the easy way. David Daney.

Re: [cp-patches] RFC/RFT: HTTP header handling rewrite.

2006-03-03 Thread David Daney
Wolfgang Baer wrote: David Daney wrote: Wolfgang Baer wrote: [...] Not correct. These Maps are only modified internally to classpath. The RFC requires header name comparisons to be case insensitive. The only way to make the Map work with String keys is to ensure that the keys get

Re: [cp-patches] RFC/RFT: HTTP header handling rewrite.

2006-03-02 Thread David Daney
Wolfgang Baer wrote: David Daney wrote: Wolfgang Baer wrote: Nice to see you have removed that now useless inner Header class. This was one of the comments I wanted to make. I worked this day on mauve testcases for this rewrite. These exposed two small bugs in Headers.java: Index: gnu

Re: [cp-patches] RFC/RFT: HTTP header handling rewrite.

2006-03-02 Thread David Daney
(k, l); ! } ! else ! l.add(e.value); The second value must be added before. The test show that SUN always adds the last received value for a key first. l.add(0, e.value); Good catch!, I will make this change. David Daney.

Re: [cp-patches] RFC/RFT: HTTP header handling rewrite.

2006-03-02 Thread David Daney
David Daney wrote: PR libgcj/26487 shows problems with our existing header handling. I hacked up the attached patch, which needs more testing (please test it!) The basic problem is that the headers were being held in a map which scrambled them up if there were more than one header of the same

Re: [cp-patches] RFC: URL fix.

2006-03-01 Thread David Daney
David Daney wrote: With this test case (just added to mauve): import java.net.URL; public class URLTest { public static void main(String []args) { try { URL url = new URL("http://www.foo.bar.com";); url = new URL(url, &qu

Re: [cp-patches] RFC: URL fix.

2006-03-01 Thread David Daney
Olivier Jolly wrote: Chris Burdess wrote: David Daney wrote: With this test case (just added to mauve): import java.net.URL; public class URLTest { public static void main(String []args) { try { URL url = new URL("http://www.foo.bar.com";); url

Re: [cp-patches] RFC: URL fix.

2006-03-01 Thread David Daney
w for a ':' in the specification to be appended to the context. Given that it is explicitly allowed to have a ':' how would you handle this? David Daney David Daney.

[cp-patches] RFC: URL fix.

2006-02-28 Thread David Daney
append the spec to the context in this case instead of replacing the context. Unless objections are raised in the next 24 hours, I plan in committing the folowing patch: 2006-02-28 David Daney <[EMAIL PROTECTED]> * java/net/URL.java (URL(URL, String, URLStreamHandler)): Treat spe

[cp-patches] RFC/RFT: HTTP header handling rewrite.

2006-02-28 Thread David Daney
was to just hold the headers in a list. This makes some searching operations less efficient, but seems the best way to keep the headers from being combined. Let me know what you think. 2006-02-28 David Daney <[EMAIL PROTECTED]> * gnu/java/net/protocol/http/HTTPURLConnectio

[cp-patches] FYI: Fix PR 25851, HTTPURLConnection.getRequestProperties()

2006-02-27 Thread David Daney
As per the PR, HTTPURLConnection.getRequestProperties() was returning a Map with Strings as values instead a Map of Lists of Strings as values. I just committed this patch: 2006-02-27 David Daney <[EMAIL PROTECTED]> PR classpath/25851 * gnu/java/net/protoco

Re: [cp-patches] RFC: gnu/java/net/protocol/http/ChunkedInputStream fix skip method.

2006-02-27 Thread David Daney
David Daney wrote: The basic problem was that ChunkedInputStream.skip() would skip on the underlying InputStream. This bypassed the byte counting of the chunked protocol resulting in failure on reads following the skip. The fix is to extent InputStream instead of FilterInputStream, as its

[cp-patches] FYI: SystemProperties usage in gnu/java/net/protocol/http/HTTPURLConnection

2006-02-27 Thread David Daney
I just committed the following to convert gnu/java/net/protocol/http/HTTPURLConnection to use SystemProperties instead of AccessController. 2006-02-27 David Daney <[EMAIL PROTECTED]> * gnu/java/net/protocol/http/HTTPURLConnection.java (imports): Clea

[cp-patches] FYI: Time out HTTP keep-alive connections

2006-02-24 Thread David Daney
David Daney wrote: Currently we keep a HTTP keep-alive connection open forever. Although allowed by RFC 2616, this is forbidden by several other specifications derived from it (DLNA and UPnP). In addition to being incompatible with these other specification, it is a waste of resources to

[cp-patches] RFC: gnu/java/net/protocol/http/ChunkedInputStream fix skip method.

2006-02-16 Thread David Daney
roach. Comments? 2006-02-16 David Daney <[EMAIL PROTECTED]> PR classpath/26312 * gnu/java/net/protocol/http/ChunkedInputStream.java (imports): Cleaned up. (ChunkedInputStream): Extend InputStream. (in): New field. (headers): Moved to t

[cp-patches] FYI: ChunkedInputStream.read()

2006-02-16 Thread David Daney
OK today really is not my day WRT e-mail. I am going to try this one more time. Original Message Subject: FYI: ChunkedInputStream.read() Date: Thu, 16 Feb 2006 13:47:13 -0800 From: David Daney <[EMAIL PROTECTED]> To: David Daney <[EMAIL PROTECTED]> CC: Class

Re: [cp-patches] RFC: HTTPURLConnection fixlet

2006-02-09 Thread David Daney
Wolfgang Baer wrote: David Daney wrote: Thanks, please update: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26081 as appropriate. If this fixes that bug (which I think it does) the changelog should be prefixed with 'PR classpath/26081' Sorry forgot to include this in the changelo

Re: [cp-patches] RFC: HTTPURLConnection fixlet

2006-02-09 Thread David Daney
Wolfgang Baer wrote: Hi all, Wolfgang Baer wrote: Hi, David Daney wrote: Perhaps make isError() a member of Response Yes, I also thought of this. Its in HTTPURLConnection because there is already a method isRedirect(Response r). Both should be moved to Response. Committed as attached

Re: [cp-patches] RFC: Time out HTTP keep-alive connections

2006-02-09 Thread David Daney
David Daney wrote: +class GetPropertiesAction + implements PrivilegedAction +{ + public Object run() + { +String ttl = System.getProperty("classpath.net.http.keepAliveTTL"); +connectionTTL = (ttl != null && ttl.length() > 0) ? +

[cp-patches] RFC: Time out HTTP keep-alive connections

2006-02-08 Thread David Daney
ainst GCC-4.1. If no objections are raised, I will retest on the classpath HEAD before committing. 2006-02-08 David Daney <[EMAIL PROTECTED]> PR classpath/26082 * gnu/java/net/protocol/http/HTTPConnection.java (pool): Changed to type Pool. (Pool): New

Re: [cp-patches] RFC: HTTPURLConnection fixlet

2006-02-05 Thread David Daney
or doing this. As you can see from my PRs, this is something that I was looking at and you just saved me a bunch of work. David Daney

Re: [cp-patches] RFC: HTTPURLConnection fixlet

2006-02-04 Thread David Daney
getInputStream() throws an exception because of a 4?? or 5?? status code, getErrorStream() must contain the response body if any. connect() should only throw an exception if there are socket level IOExceptions. I will update PR 26081 to reflect my new understanding. David Daney.

Re: [cp-patches] RFC: HTTPURLConnection fixlet

2006-02-04 Thread David Daney
implementation does ? Wolfgang I don't know what to do WRT to this spec/reference implementation disagreement, but this entire block of code is incorrect. Please see: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26081 David Daney.

Re: [cp-patches] Re: RFC: Remove default 'Expect 100-continue' usage in HTTP Requests

2006-02-04 Thread David Daney
Wolfgang Baer wrote: Hi, David Daney wrote: Wolfgang Baer wrote: +String expect = getHeader("Expect"); +if (expect != null && expect.equals("100-continue")) ^ This *may* have to be a case i

[cp-patches] Re: RFC: Remove default 'Expect 100-continue' usage in HTTP Requests

2006-02-03 Thread David Daney
upper or lower case. Other than that, I like the patch. David Daney

Re: [cp-patches] RFC: HTTPURLConnection changes needed for CUPS

2006-01-30 Thread David Daney
xpect", "100-Continue"); David Daney.

Re: [cp-patches] RFC: HTTPURLConnection changes needed for CUPS

2006-01-30 Thread David Daney
ader UNLESS it was explicitly set by the calling code? My reading of RFC 2616 makes me think that this is what we should do. If this makes sense submit a patch that does this. David Daney

Re: [cp-patches] Patch: fix Content-Encoding for compressed HTTP responses

2006-01-16 Thread David Daney
wonder about throwing an exception if we don't recognize the content-encoding. It seems to me that the caller might well recognize it somehow. How would you make this behavior compatible with java.net.*? What exception would you throw? What state would the co

Re: [cp-patches] Patch: RFC: remove InetAddress caching

2006-01-11 Thread David Daney
think this code is incorrect, as it doesn't respect TTL properly. I would like to remove it, which is what this patch does. Comments? I agree. The standard C library takes care of DNS caching (via nscd) on most systems, so this extra cache would have no added benefit. D

Re: [cp-patches] RFC: java.net.InetAddress.toString() returns wrong address

2005-12-29 Thread David Daney
Christian Thalinger wrote: Hi! While checking some FAILs in tgolem i stumbled across this common fail: FAIL: gnu.testlet.java.net.InetSocketAddress.InetSocketAddressTest: Error : test_Constructors failed - 1 No wildcard address returned (number 1) I searched a bit and i think toString() return

Re: [cp-patches] FYI: New test for JComponent.getPreferredSize

2005-12-12 Thread David Daney
t this is [EMAIL PROTECTED] Shouldn't this go to mauve-patches ? David Daney. ___ Classpath-patches mailing list Classpath-patches@gnu.org http://lists.gnu.org/mailman/listinfo/classpath-patches

Re: [cp-patches] Patch: Add security check to Class.getClasses()

2005-12-09 Thread David Daney
cks are performed: If there is a Gary> security manager, the security manager's checkMemberAccess Gary> method is called with this and Member.PUBLIC...". Interesting. The 1.5 text is different. Indeed, no superclass checks. Interesting. Perhaps the ver

Re: [cp-patches] FYI: Opening RandomAccessFiles requires excessivepermission

2005-12-08 Thread David Daney
Its constructor could take a String parameter which would be the exception message. David Daney. ___ Classpath-patches mailing list Classpath-patches@gnu.org http://lists.gnu.org/mailman/listinfo/classpath-patches

Re: [cp-patches] Patch: Opening RandomAccessFiles requires excessive permission

2005-12-07 Thread David Daney
Gary Benson wrote: David Daney wrote: Gary Benson wrote: ...I'll commit my original patch for now. I hate to sound like I have a burr under the saddle, but does anybody see any merit whatsoever in changing the exception text as I suggested in my previous response to the patch? Wha

Re: [cp-patches] Patch: Opening RandomAccessFiles requires excessive permission

2005-12-07 Thread David Daney
r now. I hate to sound like I have a burr under the saddle, but does anybody see any merit whatsoever in changing the exception text as I suggested in my previous response to the patch? David Daney. ___ Classpath-patches mailing list Classpa

Re: [cp-patches] Patch: Opening RandomAccessFiles requires excessive permission

2005-12-06 Thread David Daney
platforms other than your own, does not imply that they do not exist. David Daney ___ Classpath-patches mailing list Classpath-patches@gnu.org http://lists.gnu.org/mailman/listinfo/classpath-patches

Re: [cp-patches] Patch: Opening RandomAccessFiles requires excessive permission

2005-12-05 Thread David Daney
he exception messages should reflect that. David Daney. ___ Classpath-patches mailing list Classpath-patches@gnu.org http://lists.gnu.org/mailman/listinfo/classpath-patches

[cp-patches] FYI: Add self to AUTHORS

2005-11-18 Thread David Daney
I guess the subject says it all. 2005-11-18 David Daney <[EMAIL PROTECTED]> * AUTHORS (David Daney): New entry. Index: AUTHORS === RCS file: /cvsroot/classpath/classpath/AUTHORS,v retrieving revision 1.30 diff -u

Re: [cp-patches] Patch: 2 API methods implemented in java.lang.String

2005-11-07 Thread David Daney
ns if the replacement string contains the target string. Thanks Tom. I fixed this now, it uses a StringBuffer for better performance and also only checks for occurrences of the target string Try StringBuilder instead of StringBuffer. David Daney ___ C

Re: [cp-patches] FYI: BoxLayout thread-safe

2005-10-24 Thread David Daney
swing? If we do this, wouldn't it logically follow that we should make all of swing reentrant/thread-safe? Perhaps a better approach would be to fix the calling code. David Daney. ___ Classpath-patches mailing list Classpath-patches@gn

[cp-patches] FYI: Added item to NEWS...

2005-10-21 Thread David Daney
2005-10-21 David Daney <[EMAIL PROTECTED]> * NEWS: Added entry about HttpURLConnection improvements. Index: NEWS === RCS file: /cvsroot/classpath/classpath/NEWS,v retrieving revision 1.98 retrieving revision 1.99 d

Re: [cp-patches] Patch: use StringBuilder for reading/writing property files

2005-10-19 Thread David Daney
me is consumed in allocations and coping of the buffer. You also might want to look at comment #1 of: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21869 David Daney. ___ Classpath-patches mailing list Classpath-patches@gnu.org http://lists.gnu.org/ma

[cp-patches] FYI: Fix LineInputStream (PR classpath/24259)

2005-10-12 Thread David Daney
redundant buffering causes more memory and CPU resources to be used to allocate and move data through all the buffers. Tested with make -k check in GCJ libjava(HEAD) + mauve + jacks with no regressions. 2005-10-12 David Daney <[EMAIL PROTECTED]> PR classpath/24259 * gnu/ja

Re: [cp-patches] [PATCH] Fix PR classpath/24086, PR classpath/24091, PR classpath/24104 et al. ...

2005-10-12 Thread David Daney
Jeroen Frijters wrote: David Daney wrote: Jeroen Frijters wrote: David Daney wrote: LimitedLengthInputStream shouldn't have a finalize(). Let's consider the case where a client program did not read the entire body of the response: As implemented in the patch, the finalize

Re: [cp-patches] [PATCH] Fix PR classpath/24086, PR classpath/24091, PR classpath/24104 et al. ...

2005-10-12 Thread David Daney
Jeroen Frijters wrote: David Daney wrote: LimitedLengthInputStream shouldn't have a finalize(). Let's consider the case where a client program did not read the entire body of the response: As implemented in the patch, the finalize is indeed needed to clean up the mess and

[cp-patches] Ping: My two HTTP related patches.

2005-10-10 Thread David Daney
This one has been aging for about a week: http://lists.gnu.org/archive/html/classpath-patches/2005-10/msg00054.html This one is a little fresher, but as long as I am pinging I thought what the heck: http://lists.gnu.org/archive/html/classpath-patches/2005-10/msg00153.html Thanks, David

[cp-patches] RFA: Fix LineInputStream (PR classpath/24259)

2005-10-07 Thread David Daney
allocate and move data through all the buffers. Tested with make -k check in GCJ libjava(HEAD) + mauve + jacks with no regressions. 2005-10-07 David Daney <[EMAIL PROTECTED]> PR classpath/24259 * gnu/java/net/LineInputStream.java: Import BufferedInputStream. (Const

[cp-patches] RFC: PR classpath/24086, PR classpath/24091 (HTTPURLConnection et al.)

2005-09-29 Thread David Daney
x-gnu with no regressions. Additional ad hoc testing to verify connection re-use with Connection: keep-alive for multiple GET and POST requests. 2005-09-29 David Daney <[EMAIL PROTECTED]> PR classpath/24086, PR classpath/24091: * gnu/java/net/pr

Re: [cp-patches] DiffieHellman and RSA

2005-09-28 Thread David Daney
, and not the key calculations? An io/nio/net bug perhaps? I have been debugging some HTTP things and have found ethereal to be a good friend. If you suspect a problem in the underlying networking code, looking at the raw bits going over the network might be the only

Re: [cp-patches] RFC: Use WeakHashMap in java.util.ResourceBundle

2005-09-19 Thread David Daney
Soft and Weak references. So the end effect is that your approach would do very little caching. A limited size cache using LRU purging and hard references on the other hand would work well. David Daney. ___ Classpath-patches mailing list Clas

Re: [cp-patches] Patch: improve error handling in String

2005-09-16 Thread David Daney
e day :-) Sorry to rain on your parade. But all these man-hours of discussion guarantee that this portion of the code is bug free and thus will never be executed. David Daney. ___ Classpath-patches mailing list Classpath-patches@gnu.org

Re: [cp-patches] Patch: improve error handling in String

2005-09-15 Thread David Daney
Tom Tromey wrote: "David" == David Daney <[EMAIL PROTECTED]> writes: David> Anthony Green wrote: - // XXX - Ignore coding exceptions? They shouldn't really happen. - return null; + // This shouldn't really happen. + throw new Err

Re: [cp-patches] Patch: improve error handling in String

2005-09-14 Thread David Daney
Anthony Green wrote: - // XXX - Ignore coding exceptions? They shouldn't really happen. - return null; + // This shouldn't really happen. + throw new Error(e); Whould it be better to use InternalError? That is a little more specific. D

Re: [cp-patches] Patch: convert new Boolean(X) to Boolean.valueOf(X)

2005-09-14 Thread David Daney
or Boolean.FALSE) so the ultimate effect should be the same. None of this is necessary. But we do it anyway to make the code better. For me Boolean.TRUE reads much more cleanly than Boolean.valueOf(true). I think it improbable that it is less effici

Re: [cp-patches] [Patch] Improve/fix gnu.java.net.LineInputStream...

2005-09-13 Thread David Daney
rent than for the more general purpose public API that is ByteArrayOutputStream.toString. Any non ASCII characters in the response/headers are in violation of the RFC. So it probably does not matter what we do, what ever is easiest/most efficient is probably best. David Daney

  1   2   >