This patch fixes a few missing genericy stuff in javax.naming.

Changelog:

2006-06-14  Andrew John Hughes  <[EMAIL PROTECTED]>

        * javax/naming/InitialContext.java:
        (list(javax.naming.Name)): Fixed generic type.
        (list(String)): Likewise.
        (listBindings(javax.naming.Name)): Likewise.
        (listBindings(String)): Likewise.

-- 
Andrew :-)

Please avoid sending me Microsoft Office (e.g. Word, PowerPoint) attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html

If you use Microsoft Office, support movement towards the end of vendor lock-in:
http://opendocumentfellowship.org/petition/

"Value your freedom, or you will lose it, teaches history. 
`Don't bother us with politics' respond those who don't want to learn." 
-- Richard Stallman

Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html
public class gcj extends Freedom implements Java { ... }
Index: javax/naming/InitialContext.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/naming/InitialContext.java,v
retrieving revision 1.7.2.5
diff -u -3 -p -u -r1.7.2.5 InitialContext.java
--- javax/naming/InitialContext.java    4 Jun 2006 21:26:33 -0000       1.7.2.5
+++ javax/naming/InitialContext.java    14 Jun 2006 20:26:46 -0000
@@ -424,25 +424,25 @@ public class InitialContext implements C
   }
 
   /** @inheritDoc */  
-  public NamingEnumeration list (Name name) throws NamingException
+  public NamingEnumeration<NameClassPair> list (Name name) throws 
NamingException
   {
     return getURLOrDefaultInitCtx (name).list (name);
   }
 
   /** @inheritDoc */  
-  public NamingEnumeration list (String name) throws NamingException
+  public NamingEnumeration<NameClassPair> list (String name) throws 
NamingException
   {
     return getURLOrDefaultInitCtx (name).list (name);
   }
 
   /** @inheritDoc */  
-  public NamingEnumeration listBindings (Name name) throws NamingException
+  public NamingEnumeration<Binding> listBindings (Name name) throws 
NamingException
   {
     return getURLOrDefaultInitCtx (name).listBindings (name);
   }
 
   /** @inheritDoc */  
-  public NamingEnumeration listBindings (String name) throws NamingException
+  public NamingEnumeration<Binding> listBindings (String name) throws 
NamingException
   {
     return getURLOrDefaultInitCtx (name).listBindings (name);
   }

Attachment: signature.asc
Description: Digital signature

Reply via email to