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. These variable names need to be changed. 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. We need to cast this parameter to the "Object" type.
Created attachment 124413 [details] CVS DIffs
Created attachment 124415 [details] CVS Commit Checked into Console (HEAD). Reviewed by Rich.
Checked in a modification the the cast used when calling Method.invoke(). This is needed to maintain Java 1.4 compatibility. Reviewed by Noriko. Checking in DirUtil.java; /cvs/dirsec/console/src/com/netscape/management/client/util/DirUtil.java,v <-- DirUtil.java new revision: 1.3; previous revision: 1.2 done Index: DirUtil.java =================================================================== RCS file: /cvs/dirsec/console/src/com/netscape/management/client/util/DirUtil.java,v retrieving revision 1.2 diff -u -5 -t -r1.2 DirUtil.java --- DirUtil.java 8 Feb 2006 22:13:30 -0000 1.2 +++ DirUtil.java 8 Feb 2006 23:54:41 -0000 @@ -139,11 +139,11 @@ Method m = c.getMethod( "getCipherSuite", new Class[0] ); - _cipherSuite = m.invoke( null, (Object)null ); + _cipherSuite = m.invoke( null, (Object[])null ); } catch (Exception e) {