hi,

After a some hours of adapting the Forum and other stuff so that it would compile again against the 1.8 head (mainly to do with XmlBasicReader now returning an Iterator instead of an Enumeration) I found out that most of the functions in the packagemanager and the forum don't work anymore.

After improving the reported errors a bit I get an error like this:

2005-08-30 17:53:44,781 ERROR mmbase.util.functions.FunctionSets - java.lang.RuntimeException: Function method not found : org.mmbase.applications.packaging.projects.gui.Controller.packageTarget([java.lang.String project, java.lang.String target, java.lang.Integer newversion, java.lang.String latest, java.lang.String createnew, java.lang.String publishprovider, java.lang.String publishstate, java.lang.String publishsharepassword])

Somewhere there is "java.lang.Integer newversion", but the real implementing method takes an int.

public boolean packageTarget(String project, String target, int newversion,String latest,String createnew,String publishprovider,String publishstate,String publishsharepassword) {

So? Where did that get lost?

FunctionSets.java has a function getClassFromName() that has a special case for an 'int'

if (className.equals("int")) { // needed?
                return int.class;

But after that:

 parameter = new Parameter(parameterName, parameterClass);

A Parameter is being constructed.

Parameter.java passes the value to
 dataType = DataTypes.createDataType(name,type);

and in DataTypes.java:

 } else if (classType == Integer.class || classType == Integer.TYPE) {
     return Field.TYPE_INTEGER;

Gotcha!

... so now what? I'm a bit lost through all the classes. Maybe store both the 'function' datatype and the 'mmbase' datatype?

  Simon
_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers

Reply via email to