jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
ProxyToys
  • ProxyToys
  • PTOYS-2

Future.object

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: New Feature New Feature
  • Status: Reopened Reopened
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: 1.0
  • Component/s: Toys
  • Labels:
    None
  • Number of attachments :
    3

Description

Enclosed is an implementation of Future.object

It relies on java.util.concurrent in JDK-1.5

Q: Should I "downgrade" the code so it uses the standalone concurrent library, allowing this to run on pre-JDK-1.5?

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Java Source File
    Future.java
    29/May/04 11:29 AM
    1 kB
    Aslak Hellesøy
  2. Java Source File
    FutureInvoker.java
    29/May/04 11:30 AM
    2 kB
    Aslak Hellesøy
  3. Java Source File
    FutureTest.java
    29/May/04 11:30 AM
    2 kB
    Aslak Hellesøy

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Aslak Hellesøy made changes - 29/May/04 11:29 AM
Field Original Value New Value
Attachment Future.java [ 12188 ]
Aslak Hellesøy made changes - 29/May/04 11:30 AM
Attachment FutureInvoker.java [ 12189 ]
Aslak Hellesøy made changes - 29/May/04 11:30 AM
Attachment FutureTest.java [ 12190 ]
Hide
Permalink
Dan North added a comment - 31/May/04 5:44 AM

If we use the non-1.5 package names then ProxyToys remains compatible with 1.3 through 1.5. Even when we add <Generics> it will still be binary compatible back down to 1.3, so I would prefer to use the old Doug Lea package names and make the package an optional dependency.

The smart thing would be to wrap the three classes we use: Callable, Executors and Executor, inside similarly-named classes in proxy.toys.future, and have these statically attempt to load firstly the java.util.concurrent and then (if that fails) the edu.whatever classes in their static initialisers, and delegate off to whichever they find (or fail in <clinit> if neither is found, with a NoClassDefFoundError).

That way we have an optional dependency on the Doug Lea stuff: you have to both load the FutureXxx classes and not have 1.5.

Show
Dan North added a comment - 31/May/04 5:44 AM If we use the non-1.5 package names then ProxyToys remains compatible with 1.3 through 1.5. Even when we add <Generics> it will still be binary compatible back down to 1.3, so I would prefer to use the old Doug Lea package names and make the package an optional dependency. The smart thing would be to wrap the three classes we use: Callable, Executors and Executor, inside similarly-named classes in proxy.toys.future, and have these statically attempt to load firstly the java.util.concurrent and then (if that fails) the edu.whatever classes in their static initialisers, and delegate off to whichever they find (or fail in <clinit> if neither is found, with a NoClassDefFoundError). That way we have an optional dependency on the Doug Lea stuff: you have to both load the FutureXxx classes and not have 1.5.
Jörg Schaible made changes - 07/Aug/05 1:18 AM
Component/s Toys [ 11560 ]
Environment
Hide
Permalink
Paul Hammant added a comment - 12/Oct/09 7:45 PM

Checked in more or less as is; we're JDK 5.0 dependent now.

Show
Paul Hammant added a comment - 12/Oct/09 7:45 PM Checked in more or less as is; we're JDK 5.0 dependent now.
Paul Hammant made changes - 12/Oct/09 7:45 PM
Status Open [ 1 ] Closed [ 6 ]
Assignee Paul Hammant [ paul ]
Resolution Fixed [ 1 ]
Jörg Schaible made changes - 04/Apr/10 11:01 AM
Status Closed [ 6 ] Reopened [ 4 ]
Resolution Fixed [ 1 ]
Jörg Schaible made changes - 04/Apr/10 11:02 AM
Fix Version/s 1.0 [ 16343 ]

People

  • Assignee:
    Paul Hammant
    Reporter:
    Aslak Hellesøy
Vote (0)
Watch (0)

Dates

  • Created:
    29/May/04 11:28 AM
    Updated:
    04/Apr/10 11:02 AM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.