Chris
Actually if you look at the link the OP provided you can see where he
was coming from/ going to... (sort of)
http://groups.google.com/group/comp.lang.java.programmer/browse_thread/thread/d739a953735e0beb/62a82237e403ab76?lnk=raot
He seems to be doing an experiment to try and do something that is much
more easily done in many other ways. I think from reading the comments
on the list he is a little confused as to what 'generics' actually are
in Java. I think the tomcat aspect of it appears to be that he thinks
that tomcat can't handle 'generic' classes. I don't know why.
Albrecht
Is your background in C++? You appear to be considering that generics
are similar to templates in C++. They are not. They are simply a compile
time convention in Java 5 and later to improve java's handling of typing
when using classes in a polymorphic way. As mentioned in the thread
as above, compiled bytecode has no knowledge of the original generics.
For further information I suggest that you read the Java Language
Specification and the Java Virtual Machine spec both available on the
Sun website.
The JSP compiler in tomcat 5.5 and later supports generic classes
because it supports Java 5.
Regards
Alan
Christopher Schultz wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Alan,
Alan Chaney wrote:
| Er... shouldn't you be making K00, GenK00 and its constructor public?
...and maybe also importing them into the JSP? JSPs are not "in" a
package -- at least not a predictable one, so you need to import your
classes using the <@page import="..." @> directive.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkg3IdgACgkQ9CaO5/Lv0PC6BgCfdoyd7YnCXxbTUdYbX6nZSB9P
DCkAmwUrSFpt/gtrKeHUgD6DftRvATs5
=wkSp
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
!DSPAM:483722cc60361572928584!
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]