Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-3069

Derby does not resolve functions bound to methods with varargs.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 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
    • 10.10.1.1
    • SQL
    • Normal
    • 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.

      Attachments

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

        Issue Links

          Activity

            People

              rhillegas Richard N. Hillegas
              rhillegas Richard N. Hillegas
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: