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)
  • XFire
  • XFIRE-85

Use JDK5 type info for collection mappings

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.0-M5
  • Fix Version/s: 1.0-M5
  • Component/s: Core
  • Labels:
    None

Description

It's possible to dynamically deduce the type for a collection at runtime using Method.getGenericType/Parameters calls, and checking instanceof on the returned Type to determine whether it is parametrised and get the component type that way. This would then allow users to use collections without specifying collection component types externally.

Also, the code should remain jdk1.3/4 compatible and not kick in when running in those environments.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Dan Diephouse added a comment - 13/Jun/05 11:31 PM

This is done. There is currently no way to determine the component type on jdk 1.4 yet though.

Show
Dan Diephouse added a comment - 13/Jun/05 11:31 PM This is done. There is currently no way to determine the component type on jdk 1.4 yet though.

People

  • Assignee:
    Dan Diephouse
    Reporter:
    Hani Suleiman
Vote (0)
Watch (0)

Dates

  • Created:
    08/Jun/05 9:06 AM
    Updated:
    13/Jun/05 11:31 PM
    Resolved:
    13/Jun/05 11:31 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.