Java 5.0 generics and idlj
Hi all,
Does anyone know how to make the idlj generate proper Java 5.0 collections code. i could not figure it out and at some point the idlj compiler generates
the following in my interface's corresponding POA class:
public abstract class MyInterfacePOA extends org.omg.PortableServer.Servant
implements MyInterfaceOperations, org.omg.CORBA.portable.InvokeHandler
{
// Constructors
private static java.util.Hashtable _methods = new java.util.Hashtable ();
static
{
_methods.put ("method1", new java.lang.Integer (0));
_methods.put ("method2", new java.lang.Integer (1));
_methods.put ("method3", new java.lang.Integer (2));
_methods.put ("method4", new java.lang.Integer (3));
_methods.put ("method5", new java.lang.Integer (4));
_methods.put ("method6", new java.lang.Integer (5));
_methods.put ("method7", new java.lang.Integer (6));
}
...
The hashtable should be parameterized - that's the warning. I do not want to disable the warnings. Maybe anyone has found an alternative solution!
Thanks

