[Fedora-directory-commits] console/src/com/netscape/management/client/comm HttpsChannel.java, 1.1.1.1, 1.2

Nathan Kinder (nkinder) fedora-directory-commits at redhat.com
Wed Feb 8 22:13:20 UTC 2006


Author: nkinder

Update of /cvs/dirsec/console/src/com/netscape/management/client/comm
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv22640/src/com/netscape/management/client/comm

Modified Files:
	HttpsChannel.java 
Log Message:
Bug(s) fixed: 180544
Bug Description: Building Console fails with Java 1.5.  This is because "enum" has been added as
   a reserved keyword in Java 1.5, and we use it as a variable name.

   There is also a warning issued during build time about our usage of
   Method.invoke().  We are passing a "null" as the second parameter, but invoke()
   is overloaded and the compiler has to guess about which method to use.
Reviewed by: Rich
Files: see diffs
Branch: HEAD
Fix Description: Renamed our "enum" variable names.  Added a cast to our usage of Method.invoke()
   to avoid a compiler warning.
Platforms tested: RHEL4
Flag Day: no
Doc impact: no
QA impact: should be covered by regular nightly and manual testing
New Tests integrated into TET: none



Index: HttpsChannel.java
===================================================================
RCS file: /cvs/dirsec/console/src/com/netscape/management/client/comm/HttpsChannel.java,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- HttpsChannel.java	18 Jul 2005 00:34:12 -0000	1.1.1.1
+++ HttpsChannel.java	8 Feb 2006 22:13:12 -0000	1.2
@@ -326,9 +326,9 @@
 
         public void setCertList(Vector nicknames) {
             certList.removeAllItems();
-            Enumeration enum = nicknames.elements();
-            while (enum.hasMoreElements()) {
-                certList.addItem(enum.nextElement());
+            Enumeration nicks_enum = nicknames.elements();
+            while (nicks_enum.hasMoreElements()) {
+                certList.addItem(nicks_enum.nextElement());
             }
             if (certList.getItemCount() > 0) {
                 certList.setSelectedIndex(0);




More information about the Fedora-directory-commits mailing list