Derby
  1. Derby
  2. DERBY-3069

Derby does not resolve functions bound to methods with varargs.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 10.0.2.0, 10.0.2.1, 10.1.1.0, 10.1.2.1, 10.1.3.1, 10.2.1.6, 10.2.2.0, 10.3.1.4
    • Fix Version/s: 10.10.1.1
    • Component/s: SQL
    • Urgency:
      Normal
    • Issue & fix info:
      Patch Available

      Description

      Varargs were added in Java 5. It would be nice if Derby let you invoke a function bound to a method with a variable length argument list. The Reference Guide states a small number of restrictions for methods which can be invoked as Derby functions: They must be public, static, and not have arguments which are long datatypes. I see no reason that Derby shouldn't be able to resolve and invoke functions which are bound to methods which don't suffer these limitations but which have variable argument lists.

      1. z.java
        0.8 kB
        Rick Hillegas
      2. z.sql
        0.6 kB
        Rick Hillegas
      3. derby-3069-01-varargs-aa.diff
        11 kB
        Rick Hillegas
      4. derby-3069-01-varargs-ab.diff
        12 kB
        Rick Hillegas
      5. derby-3069-02-backout.diff
        12 kB
        Rick Hillegas
      6. Varargs.html
        10 kB
        Rick Hillegas
      7. derby-3069-03-aa-varargsSyntax.diff
        53 kB
        Rick Hillegas
      8. derby-3069-03-ab-varargsSyntax.diff
        57 kB
        Rick Hillegas
      9. derby-3069-04-aa-shortenRoutineNamesInUpgradeTest.diff
        2 kB
        Rick Hillegas
      10. derby-3069-05-aa-executeVarargs.diff
        44 kB
        Rick Hillegas
      11. derby-3069-06-ab-fixBugs.diff
        27 kB
        Rick Hillegas
      12. derby-3069-07-aa-datatypeTests.diff
        35 kB
        Rick Hillegas
      13. derby-3069-07-ab-datatypeTests.diff
        35 kB
        Rick Hillegas
      14. Varargs.html
        10 kB
        Rick Hillegas
      15. derby-3069-08-aa-stringArrayTable.diff
        3 kB
        Rick Hillegas
      16. derby-3069-09-aa-docNotSupportedOnJSR169.diff
        0.4 kB
        Rick Hillegas

        Issue Links

          Activity

          Gavin made changes -
          Workflow jira [ 12412655 ] Default workflow, editable Closed status [ 12802673 ]
          Rick Hillegas made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Rick Hillegas made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 10.10.1.1 [ 12321550 ]
          Resolution Fixed [ 1 ]
          Rick Hillegas made changes -
          Rick Hillegas made changes -
          Link This issue is related to DERBY-6047 [ DERBY-6047 ]
          Rick Hillegas made changes -
          Attachment derby-3069-08-aa-stringArrayTable.diff [ 12564254 ]
          Rick Hillegas made changes -
          Link This issue is related to DERBY-6022 [ DERBY-6022 ]
          Rick Hillegas made changes -
          Link This issue is related to DERBY-6018 [ DERBY-6018 ]
          Rick Hillegas made changes -
          Attachment Varargs.html [ 12561701 ]
          Rick Hillegas made changes -
          Attachment derby-3069-07-ab-datatypeTests.diff [ 12561599 ]
          Rick Hillegas made changes -
          Attachment derby-3069-07-aa-datatypeTests.diff [ 12561560 ]
          Rick Hillegas made changes -
          Attachment derby-3069-06-ab-fixBugs.diff [ 12560620 ]
          Rick Hillegas made changes -
          Attachment derby-3069-05-aa-executeVarargs.diff [ 12560190 ]
          Rick Hillegas made changes -
          Rick Hillegas made changes -
          Attachment derby-3069-03-ab-varargsSyntax.diff [ 12556140 ]
          Rick Hillegas made changes -
          Issue & fix info Patch Available [ 10102 ]
          Rick Hillegas made changes -
          Attachment derby-3069-03-aa-varargsSyntax.diff [ 12556125 ]
          Rick Hillegas made changes -
          Assignee Rick Hillegas [ rhillegas ]
          Rick Hillegas made changes -
          Attachment Varargs.html [ 12552462 ]
          Mamta A. Satoor made changes -
          Labels derby_triage10_10
          Urgency Normal [ 10052 ]
          Rick Hillegas made changes -
          Assignee Rick Hillegas [ rhillegas ]
          Rick Hillegas made changes -
          Attachment derby-3069-02-backout.diff [ 12376281 ]
          Dyre Tjeldvoll made changes -
          Derby Info [Patch Available]
          Rick Hillegas made changes -
          Attachment derby-3069-01-varargs-ab.diff [ 12366237 ]
          Rick Hillegas made changes -
          Derby Info [Patch Available]
          Rick Hillegas made changes -
          Attachment derby-3069-01-varargs-aa.diff [ 12366003 ]
          Rick Hillegas made changes -
          Assignee Rick Hillegas [ rhillegas ]
          Daniel John Debrunner made changes -
          Issue Type Bug [ 1 ] Improvement [ 4 ]
          Rick Hillegas made changes -
          Field Original Value New Value
          Attachment z.java [ 12365608 ]
          Attachment z.sql [ 12365609 ]
          Rick Hillegas created issue -

            People

            • Assignee:
              Rick Hillegas
              Reporter:
              Rick Hillegas
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development