Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6455625

Update Java2D demo to use Tiger features

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • client-libs
    • None
    • b98
    • x86
    • windows_xp

      Most of the demos were written long ago and do not serve as good representatives of how to code in Java today. We don't have time or the testing resources to fix all of them for Mustang, but we could fix Java2D.

      Principally we would:
       1. Where possible, replace uses of Vector with List/ArrayList and uses of Hashtable with Map/HashMap. Of course, concurrency is a concern here.
       2. Introduce generics, particularly for the collections.
       3. Replace old-style loops with the new for-in loops.

      It might make sense to introduce an enum or two or make other minor changes as well, and we might improve the inline documentation in the process.

            nsterlinsunw Nicholas Sterling (Inactive)
            nsterlinsunw Nicholas Sterling (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: