You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Mike Bowler <mb...@GargoyleSoftware.com> on 2003/01/03 12:11:04 UTC
Dependancy on Java 1.4
I tried the code from CVS yesterday on a machine running Java 1.3.1 and
discovered that there is now a hard dependancy on 1.4. The Protocol
class is using classes from the javax.net package which is new for 1.4.
This has happened a couple of times and nobody seems to realize that the
runtime dependancy is there until there is a complaint. Is it possible
to get gump to run some of the tests on a 1.3 jvm to catch these
problems earlier?
--
Mike Bowler
Principal, Gargoyle Software Inc.
Voice: (416) 822-0973 | Email : mbowler@GargoyleSoftware.com
Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com
[PATCH] Dependancy on Java 1.4
Posted by Michael Becke <be...@u.washington.edu>.
Attached is a patch plus a few new classes/interfaces. These should
solve the 1.4/JSSE dependency problem caused by Protocol. The changes
are as follows:
- SocketFactory and SSLSocketFactory have been replaced by new
interfaces ProtocolSocketFactory and SecureProtocolSocketFactory.
- default implementations of the two ProtocolSocketFactories have been
added.
- all use of JSSE classes has been moved to the
SSLProtocolSocketFactory class.
- Protocol along with the new files have been moved to a new
org.apache.commons.httpclient.protocol package. I'm not sure if this
change is necessary, but it seemed cleaner.
Enjoy,
Mike