Commit Graph

25 Commits

Author SHA1 Message Date
e6e65ecfdc The file already contains the leading slash. hotspot URL.getFile() also returns a leading slash, so instead of removing the leading slash on the file, we just wont append an extra one here 2012-06-28 10:24:35 -06:00
0addd8c814 update copyright years 2012-05-11 17:43:27 -06:00
b5fda8ee13 use avian.http.Handler for http(s) URLs, not avian.file.Handler 2012-02-27 13:38:47 -07:00
574a8ea1e2 Merge branch 'master' into prv-ga-merge 2012-02-27 13:28:06 -07:00
750e5f903c include leading slash in path when parsing URLs in URLStreamHandler
This matches the behavior of OpenJDK's version.
2012-02-18 15:14:16 -07:00
70408ea717 Fix a bug in parsing the port value from a URL. 2012-01-12 09:55:03 -07:00
651b0eb49a Add rudimentary support for http/https protocols in URL. 2012-01-12 09:54:58 -07:00
b3850ac76d Initial attempt at resolving SWT3.7 missing operatons in Avian. Everything seems to be working except floatToIntBits, hence the test case failing. 2011-12-28 15:52:53 -07:00
3dd091c67a implement jar and file URL stream handlers 2011-03-25 19:14:21 -06:00
dd52908f89 add URLConnection methods 2011-01-11 18:25:34 -07:00
a5742f5985 update copyright years 2010-12-05 20:21:09 -07:00
47d9039b69 switch from gethostbyname to getaddrinfo on POSIX systems
gethostbyname may return any combination of IPv4 and IPv6 addresses,
and it's not safe to assume the first address is IPv4, which is all
our code is currently prepared to handle.  In contrast, getaddrinfo
allows us to specify whether we want IPv4, IPv6, or both.

We should eventually make this switch on Windows as well, but the
status of getaddrinfo in Windows 2000 is not clear, and MinGW's
ws2tcpip.h only declares it for XP and above.

This commit also adds InetAddress.getByName for explicit DNS lookups.
2010-06-14 16:09:56 -06:00
20ea82ec2e various tweaks for Classpath compatibility 2009-06-06 20:32:44 -06:00
fccf906349 add minimal java.net.Socket implementation to support Socket.setTcpNoDelay 2008-11-22 15:32:53 -07:00
13a535d1c6 Added a getContentLength() method to URLConnection
This is particularly important if you want to get the number of bytes of a
resource loaded by the class loader:
  getClass().getResource("myFile").openConnection().getContentLength()
2008-07-15 09:36:52 -06:00
3a208edbbc update NIO code to be more compatible with Java 2008-03-25 11:18:17 -06:00
2edaa82801 prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
98269286e5 Implemented a basic NIO socket channel interface. Non-blocking socket channels
and server socket channels are implemented.  This version works but only when
libnative is linked with g++ (because of C++ object creation code that fails
without this linking)
2007-10-05 15:32:56 -06:00
7a340fd8fb bugfixes 2007-08-19 14:24:26 -06:00
59638543c7 various performance tweaks and bugfixes 2007-08-19 13:45:51 -06:00
d3931b4853 flesh out resource URL scheme implementation 2007-08-10 17:45:47 -06:00
2e9b9fe8d4 flesh out URL and friends 2007-08-02 19:49:32 -06:00
1997ea6b8c acquire class lock before running static initializer; wrap exceptions thrown from static initializers in ExceptionInInitializerError instances 2007-08-01 17:48:36 -06:00
a2bd7d0668 GC stress fixes and other bugfixes; classpath progress 2007-07-29 17:32:23 -06:00
a9e10d1c7f more classpath progress 2007-07-28 19:29:01 -06:00