someone want to take care of this?

thx.

-jon

-- 
Come to the first official Apache Software Foundation
Conference!  <http://ApacheCon.Com/>


----------
From: "Jon Smirl" <[EMAIL PROTECTED]>
Date: Fri, 7 Jan 2000 18:28:05 -0500
To: "jon *" <[EMAIL PROTECTED]>
Subject: Re: Turbine and Java2

Since I've only been looking at this code an hour, I am concerned about just
handing you diffs since I definitely don't understand the code and I may
break it. I'd feel better if you looked at these changes before applying
them. This code compiles but I have not executed it. All of these changes
are necessary to make it build in MS Visual J++.

Here's how I fixed it to build:

turbine, PersistenceBroker.java
        return (PersistentObject[])vector.toArray(new
PersistentObject[vector.size()]);
replace with:
        PersistentObject[] po = new PersistentObject[vector.size()];
        vector.copyInto(po);
        return po;
remove:
import org.apache.turbine.opl.database.*;


turbine, ClassMap.java
        columnNames = (String [])vector.toArray(new String[vector.size()]);
replace with:
        columnNames = new String[vector.size()];
        vector.copyInto(columnNames);

turbine, UnidirectionalAssocationMap.java
    public Iterator getAssociatedKeys()
    {
        return associatedKeys.iterator();
    }
replace with:
    public Enumeration getAssociatedKeys()
    {
        return associatedKeys.elements();
    }

turbine, RetrieveCriteria.java
    public void setSelectFor(Iterator iterator, PersistentObject
persistentObj)
    {
        while (iterator.hasNext())
        {
            AssociatedKeys keys = (AssociatedKeys) iterator.next();
            addSelectEqualTo(keys.getForeignKey(),
                persistentObj.getAttribute(keys.getKey()).getValue());
        }
    }
replace with:
    public void setSelectFor(Enumeration enum, PersistentObject
persistentObj)


        while (enum.hasMoreElements())
        {
            AssociatedKeys keys = (AssociatedKeys) enum.nextElement();
            addSelectEqualTo(keys.getForeignKey(),
                persistentObj.getAttribute(keys.getKey()).getValue());
        }
    }

turbine, modules/Action.java
remove:
// Turbine Modules
import org.apache.turbine.modules.*;

turbine, opl/api/RetrieveCriteria.java
remove:
import org.apache.turbine.opl.api.*;

turbine, AccessControlBuilder.java
remove:
import org.apache.turbine.util.access.*;

turbine, RunDataFactory.java:
remove:
// Turbine Utility Classes
import org.apache.turbine.util.*;

turbine, TurbineUser.java
remove:
import org.apache.turbine.util.*;

turbine, TurbineUserPeer.java
remove:
import org.apache.turbine.util.*;

In ECS html/Doctype.java

        public Html40Strict() {
            dtd = "\"-//W3C//DTD HTML 4.0//EN\"";
            uri = "\"http://www.w3.org/TR/REC-html40/strict.dtd\"";
            this.updateElementType();
        }
        public Html40Transitional() {
            dtd = "\"-//W3C//DTD HTML 4.0 Transitional//EN\"";
            uri = "\"http://www.w3.org/TR/REC-html40/loose.dtd\"";
            this.updateElementType();
        }
        public Html40Frameset() {
            dtd = "\"-//W3C//DTD HTML 4.0 Frameset//EN\"";
            uri = "\"http://www.w3.org/TR/REC-html40/frameset.dtd\"";
            this.updateElementType();
        }
change dtd = to this.dtd =
change uri = to this.uri =
In each of the constructors


Jon Smirl
[EMAIL PROTECTED]





------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to