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

support multiple return types in the Java language

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 5.0
    • specification
    • generic
    • generic



      Name: gh8910 Date: 02/18/2002



      At the moment Java methods can only return a single value.

      In practice some methods need to return multiple values.
      Currently the only solution to this is to create a trivial
      class to hold the multiple values.

      We should investgate whether it would be useful to modify
      the Java language to support multiple return types from methods.

      ======================================================================

            duke J. Duke
            ghamiltosunw Graham Hamilton (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: