Derby
  1. Derby
  2. DERBY-4893

Allow Java 5 language constructs in build code

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 10.7.1.1
    • Fix Version/s: 10.7.1.1
    • Component/s: Build tools
    • Labels:
      None

      Description

      We already allow the use of methods and classes that only exist in Java 5 and higher in code that only runs at build time, but java/build/org/apache/derbyBuild/build.xml specifies source and target level "1.4", so we cannot use the new syntax introduced in Java 5. I think we should also change source and target level to allow the new (well, not so new anymore...) language constructs.

      (I noticed this when I started writing code to perform sanity checking of the message files at build time (DERBY-4796) and couldn't use the simpler for loop syntax.)

      1. build-java5.diff
        24 kB
        Knut Anders Hatlen

        Issue Links

          Activity

          Knut Anders Hatlen created issue -
          Knut Anders Hatlen made changes -
          Field Original Value New Value
          Status Open [ 1 ] In Progress [ 3 ]
          Knut Anders Hatlen made changes -
          Attachment build-java5.diff [ 12459020 ]
          Knut Anders Hatlen made changes -
          Link This issue is required by DERBY-4796 [ DERBY-4796 ]
          Knut Anders Hatlen made changes -
          Status In Progress [ 3 ] Closed [ 6 ]
          Issue & fix info [Patch Available]
          Fix Version/s 10.7.1.0 [ 12314971 ]
          Resolution Fixed [ 1 ]
          Rick Hillegas made changes -
          Affects Version/s 10.7.1.1 [ 12315564 ]
          Affects Version/s 10.7.1.0 [ 12314971 ]
          Fix Version/s 10.7.1.1 [ 12315564 ]
          Fix Version/s 10.7.1.0 [ 12314971 ]
          Gavin made changes -
          Workflow jira [ 12526208 ] Default workflow, editable Closed status [ 12800487 ]

            People

            • Assignee:
              Knut Anders Hatlen
              Reporter:
              Knut Anders Hatlen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development