Try to make javac 1.5 not complain by casting argument to Object[].

This commit is contained in:
hns 2005-03-18 03:17:13 +00:00
parent abaa492d2a
commit 0dd4dba0f7

View file

@ -342,7 +342,8 @@ public class ApplicationManager implements XmlRpcHandler {
Repository newRepository = null;
try {
newRepository = (Repository) Class.forName(repositoryImpl)
.getConstructor(parameters).newInstance(repositoryArgs);
.getConstructor(parameters)
.newInstance((Object[]) repositoryArgs);
repositoryList.add(newRepository);
} catch (Exception ex) {
System.out.println("Adding repository " + repositoryArgs + " failed. " +