You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Knut Anders Hatlen (JIRA)" <ji...@apache.org> on 2010/11/07 18:06:07 UTC

[jira] Created: (DERBY-4893) Allow Java 5 language constructs in build code

Allow Java 5 language constructs in build code
----------------------------------------------

                 Key: DERBY-4893
                 URL: https://issues.apache.org/jira/browse/DERBY-4893
             Project: Derby
          Issue Type: Improvement
          Components: Build tools
    Affects Versions: 10.7.1.0
            Reporter: Knut Anders Hatlen
            Assignee: Knut Anders Hatlen
            Priority: Minor


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.)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DERBY-4893) Allow Java 5 language constructs in build code

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4893?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen updated DERBY-4893:
--------------------------------------

    Attachment: build-java5.diff

The attached patch changes source and target level to 1.5 in java/build/org/apache/derbyBuild/build.xml. This made the compiler emit some "unchecked" warnings, so the patch also changes some variable declarations in the build code to silence the warnings.

All the regression tests ran cleanly with the patch.

> Allow Java 5 language constructs in build code
> ----------------------------------------------
>
>                 Key: DERBY-4893
>                 URL: https://issues.apache.org/jira/browse/DERBY-4893
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools
>    Affects Versions: 10.7.1.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>            Priority: Minor
>         Attachments: build-java5.diff
>
>
> 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.)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (DERBY-4893) Allow Java 5 language constructs in build code

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4893?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen closed DERBY-4893.
-------------------------------------

          Resolution: Fixed
       Fix Version/s: 10.7.1.0
    Issue & fix info:   (was: [Patch Available])

Committed revision 1032479.

> Allow Java 5 language constructs in build code
> ----------------------------------------------
>
>                 Key: DERBY-4893
>                 URL: https://issues.apache.org/jira/browse/DERBY-4893
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools
>    Affects Versions: 10.7.1.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>            Priority: Minor
>             Fix For: 10.7.1.0
>
>         Attachments: build-java5.diff
>
>
> 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.)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.