[Fedora-directory-commits] console/src/com/netscape/management/client/util DirUtil.java, 1.1.1.1, 1.2
Nathan Kinder (nkinder)
fedora-directory-commits at redhat.com
Wed Feb 8 22:13:46 UTC 2006
Author: nkinder
Update of /cvs/dirsec/console/src/com/netscape/management/client/util
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv22640/src/com/netscape/management/client/util
Modified Files:
DirUtil.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: DirUtil.java
===================================================================
RCS file: /cvs/dirsec/console/src/com/netscape/management/client/util/DirUtil.java,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- DirUtil.java 18 Jul 2005 00:34:26 -0000 1.1.1.1
+++ DirUtil.java 8 Feb 2006 22:13:30 -0000 1.2
@@ -141,7 +141,7 @@
try {
Class c = Class.forName( SSL_CIPHERS );
Method m = c.getMethod( "getCipherSuite", new Class[0] );
- _cipherSuite = m.invoke( null, null );
+ _cipherSuite = m.invoke( null, (Object)null );
} catch (Exception e) {
Debug.println("DirUtil.getCipherSuite: Cannot load class, " +
e );
More information about the Fedora-directory-commits
mailing list