In my opinion, it depends on the global policy in commons-pool about Java 1.4. Other commons project (Lang for example) are only supporting Java 1.5 in their next big version.

On 16/02/2010 23:43, Christopher Schultz wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Kay,

On 2/16/2010 5:31 PM, Kay Kay wrote:
On 2/16/10 2:20 PM, Christopher Schultz wrote:
Kay,

(Any relation to Jay Kay? That's guy's cool)

    not exactly :)
:(

Maybe you could just wear a silly hat. That'd be enough.

I meant - something along the lines of -
PoolableObjectFactory<T>  {
   void activateObject(T obj);
   destroyObject(T obj);
   T makeObject();
   void passivateObject(T obj);
   boolean validateObject(T obj);
}
Oh, I misunderstood your request: you mean that you want to use
"generics" in commons-pool.

I wasn't able to find any environment "requirements" for commons-pool,
but I suspect that the developers would like commons-pool to be usable
in pre-1.5 Java environments, where generic classes aren't available.

I have to admit that I'm not a big fan of generics in the first place...
just syntactic sugar that ends up making your code uglier than it would
be with plain-old casting. And, in Java, you don't even get RTTI which
is really too bad :(

If you'd like to use commons-pool as a basis for your own tools, you can
certainly modify the source code to add lots of<  and>  symbols if you
want. Also, patches are always welcome :)

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkt7H6IACgkQ9CaO5/Lv0PD0hACfbGrUuEN4RKCH8o3EJGTaV9sv
eWIAoIqM1pnMmwZcs6Wx1JY9+y1x1pdA
=XQow
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to