• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Java 1.5 & WO?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Java 1.5 & WO?


  • Subject: Re: Java 1.5 & WO?
  • From: Randy Wigginton <email@hidden>
  • Date: Fri, 27 Jan 2006 05:57:11 -0800


I ran into numerous issues with Java 1.5 & WO; EOModeler exhibits very strange behavior; glitches through out the system. For me the killer was the lack of support for Java 1.5 from the Apache axis libraries, so I've downgraded. Never knew how easy it was to downgrade java versions on my OSX box.


On Jan 26, 2006, at 5:55 PM, Christian Pekeler wrote:

Has anyone tried Java 1.5 and WO?

I've run into an issue with the new for() syntax.

    @Test public void arrayIteratorProblem() {
        int count = 0;
        NSArray array = new NSMutableArray(30);
        for (Object object: array)
            count++;
        assertEquals(0, count);

The test fails with count == 30. I believe the underlying problem is a bug in NSArray.iterator() which returns an Iterator setup for the array's capacity instead of the array's size.

Workaround:
        for (Object object: array.objects())

It might help if more people file bug reports about the NSArray.iterator() issue.


Christian

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: Java 1.5 & WO? (From: Christian Pekeler <email@hidden>)

  • Prev by Date: Re: Java 1.5 & WO?
  • Next by Date: Re: WebObjects OpenBase plugin question...
  • Previous by thread: Re: Java 1.5 & WO?
  • Next by thread: How many is too many instances?
  • Index(es):
    • Date
    • Thread