Now that I look closer it appears that the problem is not with
Enumeration itself but how we were using it.

NSMutableArray temp =
(NSMutableArray)EOUtilities.objectsMatchingKeyAndValue(this.editingConte
xt(), "RMInboxItem", "iKeyValue",this.primaryKey());
RMInboxItem inbox;
 Enumeration enum=temp.objectEnumerator();
 while(enum.hasMoreElements())
 {
        inbox=(RMInboxItem)enum.nextElement();
        if(inbox == null){
            break;
        }else{
            inbox.takeValueForKey(RMInboxItem.COMPLETE,"sCompletedInd");
        }
 }

If I change this code to put the Enumeration within a for loop then it
compiles fine.

I do agree that setting compatibility back to 1.4 is not the best
approach.  I was just looking to resolve some issues quickly and then
come back to this later.  Anyway, I think I just need to make changes to
put the Enumeration within a for loop.

Thanks,

Terry Soles

Verizonbusiness

VNet 870-1702

678-259-1702
 

-----Original Message-----
From: Chuck Hill [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 09, 2008 2:09 PM
To: Soles, James T (Terry)
Cc: [email protected]
Subject: Re: Enumeration cannot be resolved


On Oct 9, 2008, at 10:55 AM, Soles, James T (Terry) wrote:

> I have done some looking around on the list archives and have been  
> unsuccessful finding specifics on how to resolve this error when it  
> is associated with WebObjects and building using ant.
>
> I am moving from Java 1.4 to Java 1.5 and getting the "Enumeration  
> cannot be resolved" error


Can you give an exact example of this (copy and paste the entire error  
or take a screen shot)?  I don't recall this being a problem moving  
from 1.4 to 1.5.  The Enumeration interface is in java.util, are you  
importing that package?


> when I build a WOFramework through eclipse using ant.  I have done  
> some reading about the option of using source="1.4" in the build  
> file but since I don't have a javac command in my build file I'm not  
> sure where to put this option.  My build file uses a taskdef of  
> woframework.  I've tried setting a property name of source with a  
> value of 1.4 to the build file and adding a "javacSource = 1.4"  
> value to the build.properties file with no success.
>
> Any other suggestions?

Well, I think that setting source compatibility back to 1.4 is  
probably not the best solution.

Chuck


-- 
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.
http://www.global-village.net/products/practical_webobjects






 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to