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 "Rick Hillegas (JIRA)" <ji...@apache.org> on 2008/12/12 21:31:44 UTC

[jira] Created: (DERBY-3989) Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be

Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be
-------------------------------------------------------------------------------------------------------------------------------------------

                 Key: DERBY-3989
                 URL: https://issues.apache.org/jira/browse/DERBY-3989
             Project: Derby
          Issue Type: Improvement
          Components: Build tools
    Affects Versions: 10.5.0.0
            Reporter: Rick Hillegas


This will make the build even more flexible. Probably involves the following changes:

1) Relaxing the requirement in PropertySetter that a Java 5 JDK must exist

2) Having PropertySetter look for a Java 6 JDK (and set java16compile.classpath accordingly) just as PropertySetter looks for a Java 5 JDK today

3) Changing the setCompilerProperties target in the master build script so that it

  a) requires that java15compile.classpath or java16compile.classpath is set (it's ok for both to be set)

  b) sets java15compile.classpath to ${jdbc3stubs}:${java16compile.classpath}

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


[jira] Updated: (DERBY-3989) Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be

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

Rick Hillegas updated DERBY-3989:
---------------------------------

    Attachment: derby-3989-01-ab-optionalJava5.diff

Attaching derby-3989-01-ab-optionalJava5.diff. This is identical to the previous patch except that it updates BUILDING.html to reflect these changes.

> Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-3989
>                 URL: https://issues.apache.org/jira/browse/DERBY-3989
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools
>    Affects Versions: 10.5.0.0
>            Reporter: Rick Hillegas
>         Attachments: derby-3989-01-aa-optionalJava5.diff, derby-3989-01-ab-optionalJava5.diff
>
>
> This will make the build even more flexible. Probably involves the following changes:
> 1) Relaxing the requirement in PropertySetter that a Java 5 JDK must exist
> 2) Having PropertySetter look for a Java 6 JDK (and set java16compile.classpath accordingly) just as PropertySetter looks for a Java 5 JDK today
> 3) Changing the setCompilerProperties target in the master build script so that it
>   a) requires that java15compile.classpath or java16compile.classpath is set (it's ok for both to be set)
>   b) sets java15compile.classpath to ${jdbc3stubs}:${java16compile.classpath}

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


[jira] Updated: (DERBY-3989) Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be

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

Kristian Waagan updated DERBY-3989:
-----------------------------------

    Attachment: derby-3989-02-aa-dontUseJava6LibsWithJava5Compiler.diff

That's a good point, Rick.

See attached patch 02-aa for a possible solution. It basically relaxes the conditions used in the shouldNotSet-method. Earlier it kicked in only for IBM JDKs, no it will kick in regardless of the JDK vendor as long as a Java 5 compiler is used with Java 6 libraries.
I also added some extra debugging prints.

Patch ready for review.

> Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-3989
>                 URL: https://issues.apache.org/jira/browse/DERBY-3989
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools
>    Affects Versions: 10.5.1.1
>            Reporter: Rick Hillegas
>             Fix For: 10.5.1.1
>
>         Attachments: derby-3989-01-aa-optionalJava5.diff, derby-3989-01-ab-optionalJava5.diff, derby-3989-01-ac-optionalJava5.diff, derby-3989-02-aa-dontUseJava6LibsWithJava5Compiler.diff
>
>
> This will make the build even more flexible. Probably involves the following changes:
> 1) Relaxing the requirement in PropertySetter that a Java 5 JDK must exist
> 2) Having PropertySetter look for a Java 6 JDK (and set java16compile.classpath accordingly) just as PropertySetter looks for a Java 5 JDK today
> 3) Changing the setCompilerProperties target in the master build script so that it
>   a) requires that java15compile.classpath or java16compile.classpath is set (it's ok for both to be set)
>   b) sets java15compile.classpath to ${jdbc3stubs}:${java16compile.classpath}

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


[jira] Updated: (DERBY-3989) Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be

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

Rick Hillegas updated DERBY-3989:
---------------------------------

    Attachment: derby-3989-01-aa-optionalJava5.diff

Attaching derby-3989-01-aa-optionalJava5.diff. This patch makes it possible to build Derby using just the Derby sources and a Java 6 compiler. This patch makes the following changes:

1) If j16lib is set, PropertySetter sets java16compile.classpath from j16lib. If j16lib is not set, PropertySetter looks for a Java 6 JDK and sets java16compile.classpath to be the list of jars in the Java 6 library directory.

2) However, PropertySetter does not try to set java16compile.classpath if the compiler is an IBM Java 5 compiler. This is because the IBM Java 5 compiler raises version mismatch errors when it pulls in Java 6 libraries.

3) If, at the end, neither java15compile.classpath nor java16compile.classpath is set, PropertySetter aborts the build.

4) If PropertySetter could not set java15compile.classpath, then the master build script sets java15compile.classpath to be ${jdbc3stubs}:${java16compile.classpath}.

I have verified that the build runs correctly on the following platforms:

- Mac OS X
- Ubuntu using Sun JDKs
- Ubuntu using IBM JDKs

with the following environments:

a) Java 5 compiler + Java 6 libraries
b) Java 5 compiler - Java 6 libraries
c) Java 6 compiler + Java 5 libraries
d) Java 6 compiler - Java 5 libraries

I would appreciate it if other people could test-drive this patch on their machines and report whether the build succeeds in cases (a) through (d).

Thanks!


Touches the following files:

M      java/build/org/apache/derbyPreBuild/PropertySetter.java

Implements (1) - (3).


M      build.xml

Implements (4).


> Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-3989
>                 URL: https://issues.apache.org/jira/browse/DERBY-3989
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools
>    Affects Versions: 10.5.0.0
>            Reporter: Rick Hillegas
>         Attachments: derby-3989-01-aa-optionalJava5.diff
>
>
> This will make the build even more flexible. Probably involves the following changes:
> 1) Relaxing the requirement in PropertySetter that a Java 5 JDK must exist
> 2) Having PropertySetter look for a Java 6 JDK (and set java16compile.classpath accordingly) just as PropertySetter looks for a Java 5 JDK today
> 3) Changing the setCompilerProperties target in the master build script so that it
>   a) requires that java15compile.classpath or java16compile.classpath is set (it's ok for both to be set)
>   b) sets java15compile.classpath to ${jdbc3stubs}:${java16compile.classpath}

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


[jira] Commented: (DERBY-3989) Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be

Posted by "Rick Hillegas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-3989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12663473#action_12663473 ] 

Rick Hillegas commented on DERBY-3989:
--------------------------------------

Thanks for test-driving derby-3989-01-ac-optionalJava5.diff, Myrna. Committed at subversion revision 734242.

> Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-3989
>                 URL: https://issues.apache.org/jira/browse/DERBY-3989
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools
>    Affects Versions: 10.5.0.0
>            Reporter: Rick Hillegas
>         Attachments: derby-3989-01-aa-optionalJava5.diff, derby-3989-01-ab-optionalJava5.diff, derby-3989-01-ac-optionalJava5.diff
>
>
> This will make the build even more flexible. Probably involves the following changes:
> 1) Relaxing the requirement in PropertySetter that a Java 5 JDK must exist
> 2) Having PropertySetter look for a Java 6 JDK (and set java16compile.classpath accordingly) just as PropertySetter looks for a Java 5 JDK today
> 3) Changing the setCompilerProperties target in the master build script so that it
>   a) requires that java15compile.classpath or java16compile.classpath is set (it's ok for both to be set)
>   b) sets java15compile.classpath to ${jdbc3stubs}:${java16compile.classpath}

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


[jira] Commented: (DERBY-3989) Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be

Posted by "Rick Hillegas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-3989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12662976#action_12662976 ] 

Rick Hillegas commented on DERBY-3989:
--------------------------------------

Thanks, Myrna. Could you set the following property in your ant.properties and post the diagnostics that it prints out?

printCompilerProperties=true

Thanks!

> Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-3989
>                 URL: https://issues.apache.org/jira/browse/DERBY-3989
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools
>    Affects Versions: 10.5.0.0
>            Reporter: Rick Hillegas
>         Attachments: derby-3989-01-aa-optionalJava5.diff, derby-3989-01-ab-optionalJava5.diff
>
>
> This will make the build even more flexible. Probably involves the following changes:
> 1) Relaxing the requirement in PropertySetter that a Java 5 JDK must exist
> 2) Having PropertySetter look for a Java 6 JDK (and set java16compile.classpath accordingly) just as PropertySetter looks for a Java 5 JDK today
> 3) Changing the setCompilerProperties target in the master build script so that it
>   a) requires that java15compile.classpath or java16compile.classpath is set (it's ok for both to be set)
>   b) sets java15compile.classpath to ${jdbc3stubs}:${java16compile.classpath}

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


[jira] Commented: (DERBY-3989) Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-3989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12877030#action_12877030 ] 

Knut Anders Hatlen commented on DERBY-3989:
-------------------------------------------


The approach in patch 02-aa looks reasonable to me. +1


> Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-3989
>                 URL: https://issues.apache.org/jira/browse/DERBY-3989
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools
>    Affects Versions: 10.5.1.1
>            Reporter: Rick Hillegas
>             Fix For: 10.5.1.1
>
>         Attachments: derby-3989-01-aa-optionalJava5.diff, derby-3989-01-ab-optionalJava5.diff, derby-3989-01-ac-optionalJava5.diff, derby-3989-02-aa-dontUseJava6LibsWithJava5Compiler.diff
>
>
> This will make the build even more flexible. Probably involves the following changes:
> 1) Relaxing the requirement in PropertySetter that a Java 5 JDK must exist
> 2) Having PropertySetter look for a Java 6 JDK (and set java16compile.classpath accordingly) just as PropertySetter looks for a Java 5 JDK today
> 3) Changing the setCompilerProperties target in the master build script so that it
>   a) requires that java15compile.classpath or java16compile.classpath is set (it's ok for both to be set)
>   b) sets java15compile.classpath to ${jdbc3stubs}:${java16compile.classpath}

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


[jira] Updated: (DERBY-3989) Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be

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

Rick Hillegas updated DERBY-3989:
---------------------------------

    Attachment: derby-3989-01-ac-optionalJava5.diff

Thanks for the experiments and analysis, Myrna and Knut. Knut is right: PropertySetter sets java16compile.classpath from j16lib if the latter property is set, and that causes the version mismatch problem if you are using the Java 5 compiler. Attaching a new rev of the patch: derby-3989-01-ac-optionalJava5.diff.

This rev aborts the build if you are using the IBM Java 5 compiler AND you have explicitly set EITHER j16lib or java16compile.classpath. Once again, I would appreciate your test-driving this patch.

Thanks!

> Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-3989
>                 URL: https://issues.apache.org/jira/browse/DERBY-3989
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools
>    Affects Versions: 10.5.0.0
>            Reporter: Rick Hillegas
>         Attachments: derby-3989-01-aa-optionalJava5.diff, derby-3989-01-ab-optionalJava5.diff, derby-3989-01-ac-optionalJava5.diff
>
>
> This will make the build even more flexible. Probably involves the following changes:
> 1) Relaxing the requirement in PropertySetter that a Java 5 JDK must exist
> 2) Having PropertySetter look for a Java 6 JDK (and set java16compile.classpath accordingly) just as PropertySetter looks for a Java 5 JDK today
> 3) Changing the setCompilerProperties target in the master build script so that it
>   a) requires that java15compile.classpath or java16compile.classpath is set (it's ok for both to be set)
>   b) sets java15compile.classpath to ${jdbc3stubs}:${java16compile.classpath}

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


[jira] Commented: (DERBY-3989) Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be

Posted by "Myrna van Lunteren (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-3989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12663446#action_12663446 ] 

Myrna van Lunteren commented on DERBY-3989:
-------------------------------------------

As long as I don't have j16lib nor java16compile.classpath set, things work with ibm15 compiler - and either way with ibm16 compiler.
+1 

> Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-3989
>                 URL: https://issues.apache.org/jira/browse/DERBY-3989
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools
>    Affects Versions: 10.5.0.0
>            Reporter: Rick Hillegas
>         Attachments: derby-3989-01-aa-optionalJava5.diff, derby-3989-01-ab-optionalJava5.diff, derby-3989-01-ac-optionalJava5.diff
>
>
> This will make the build even more flexible. Probably involves the following changes:
> 1) Relaxing the requirement in PropertySetter that a Java 5 JDK must exist
> 2) Having PropertySetter look for a Java 6 JDK (and set java16compile.classpath accordingly) just as PropertySetter looks for a Java 5 JDK today
> 3) Changing the setCompilerProperties target in the master build script so that it
>   a) requires that java15compile.classpath or java16compile.classpath is set (it's ok for both to be set)
>   b) sets java15compile.classpath to ${jdbc3stubs}:${java16compile.classpath}

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


[jira] Closed: (DERBY-3989) Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be

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

Kristian Waagan closed DERBY-3989.
----------------------------------

    Assignee: Rick Hillegas

Closing issue, as the original problem has been fixed. See DERBY-4699 for updates on the remaining/related issue.

> Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-3989
>                 URL: https://issues.apache.org/jira/browse/DERBY-3989
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools
>    Affects Versions: 10.5.1.1
>            Reporter: Rick Hillegas
>            Assignee: Rick Hillegas
>             Fix For: 10.5.1.1
>
>         Attachments: derby-3989-01-aa-optionalJava5.diff, derby-3989-01-ab-optionalJava5.diff, derby-3989-01-ac-optionalJava5.diff, derby-3989-02-aa-dontUseJava6LibsWithJava5Compiler.diff
>
>
> This will make the build even more flexible. Probably involves the following changes:
> 1) Relaxing the requirement in PropertySetter that a Java 5 JDK must exist
> 2) Having PropertySetter look for a Java 6 JDK (and set java16compile.classpath accordingly) just as PropertySetter looks for a Java 5 JDK today
> 3) Changing the setCompilerProperties target in the master build script so that it
>   a) requires that java15compile.classpath or java16compile.classpath is set (it's ok for both to be set)
>   b) sets java15compile.classpath to ${jdbc3stubs}:${java16compile.classpath}

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


[jira] Updated: (DERBY-3989) Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be

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

Rick Hillegas updated DERBY-3989:
---------------------------------

    Derby Info: [Patch Available]

> Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-3989
>                 URL: https://issues.apache.org/jira/browse/DERBY-3989
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools
>    Affects Versions: 10.5.0.0
>            Reporter: Rick Hillegas
>         Attachments: derby-3989-01-aa-optionalJava5.diff, derby-3989-01-ab-optionalJava5.diff
>
>
> This will make the build even more flexible. Probably involves the following changes:
> 1) Relaxing the requirement in PropertySetter that a Java 5 JDK must exist
> 2) Having PropertySetter look for a Java 6 JDK (and set java16compile.classpath accordingly) just as PropertySetter looks for a Java 5 JDK today
> 3) Changing the setCompilerProperties target in the master build script so that it
>   a) requires that java15compile.classpath or java16compile.classpath is set (it's ok for both to be set)
>   b) sets java15compile.classpath to ${jdbc3stubs}:${java16compile.classpath}

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


[jira] Updated: (DERBY-3989) Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be

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

Kristian Waagan updated DERBY-3989:
-----------------------------------

    Issue & fix info: [Patch Available]

> Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-3989
>                 URL: https://issues.apache.org/jira/browse/DERBY-3989
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools
>    Affects Versions: 10.5.1.1
>            Reporter: Rick Hillegas
>             Fix For: 10.5.1.1
>
>         Attachments: derby-3989-01-aa-optionalJava5.diff, derby-3989-01-ab-optionalJava5.diff, derby-3989-01-ac-optionalJava5.diff, derby-3989-02-aa-dontUseJava6LibsWithJava5Compiler.diff
>
>
> This will make the build even more flexible. Probably involves the following changes:
> 1) Relaxing the requirement in PropertySetter that a Java 5 JDK must exist
> 2) Having PropertySetter look for a Java 6 JDK (and set java16compile.classpath accordingly) just as PropertySetter looks for a Java 5 JDK today
> 3) Changing the setCompilerProperties target in the master build script so that it
>   a) requires that java15compile.classpath or java16compile.classpath is set (it's ok for both to be set)
>   b) sets java15compile.classpath to ${jdbc3stubs}:${java16compile.classpath}

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


[jira] Commented: (DERBY-3989) Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-3989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12662992#action_12662992 ] 

Knut Anders Hatlen commented on DERBY-3989:
-------------------------------------------

I had a quick look at the ab patch, and nothing jumped at me. Two small nits, though:

  * the count variable in requireAtLeastOneProperty() is never used

  * couldntSetProperty() reinvents Property.toString() (or actually Hashtable.toString() which is inherited by Property)

> Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-3989
>                 URL: https://issues.apache.org/jira/browse/DERBY-3989
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools
>    Affects Versions: 10.5.0.0
>            Reporter: Rick Hillegas
>         Attachments: derby-3989-01-aa-optionalJava5.diff, derby-3989-01-ab-optionalJava5.diff
>
>
> This will make the build even more flexible. Probably involves the following changes:
> 1) Relaxing the requirement in PropertySetter that a Java 5 JDK must exist
> 2) Having PropertySetter look for a Java 6 JDK (and set java16compile.classpath accordingly) just as PropertySetter looks for a Java 5 JDK today
> 3) Changing the setCompilerProperties target in the master build script so that it
>   a) requires that java15compile.classpath or java16compile.classpath is set (it's ok for both to be set)
>   b) sets java15compile.classpath to ${jdbc3stubs}:${java16compile.classpath}

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


[jira] Updated: (DERBY-3989) Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be

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

Myrna van Lunteren updated DERBY-3989:
--------------------------------------

    Fix Version/s: 10.5.0.0

> Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-3989
>                 URL: https://issues.apache.org/jira/browse/DERBY-3989
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools
>    Affects Versions: 10.5.0.0
>            Reporter: Rick Hillegas
>             Fix For: 10.5.0.0
>
>         Attachments: derby-3989-01-aa-optionalJava5.diff, derby-3989-01-ab-optionalJava5.diff, derby-3989-01-ac-optionalJava5.diff
>
>
> This will make the build even more flexible. Probably involves the following changes:
> 1) Relaxing the requirement in PropertySetter that a Java 5 JDK must exist
> 2) Having PropertySetter look for a Java 6 JDK (and set java16compile.classpath accordingly) just as PropertySetter looks for a Java 5 JDK today
> 3) Changing the setCompilerProperties target in the master build script so that it
>   a) requires that java15compile.classpath or java16compile.classpath is set (it's ok for both to be set)
>   b) sets java15compile.classpath to ${jdbc3stubs}:${java16compile.classpath}

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


[jira] Issue Comment Edited: (DERBY-3989) Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be

Posted by "Myrna van Lunteren (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-3989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12663116#action_12663116 ] 

myrna edited comment on DERBY-3989 at 1/12/09 2:13 PM:
--------------------------------------------------------------------

For what it's worth, the compile works correctly wtih the same  properties setting if I'm building with the ibm16 compiler. 
In that case, the printCompilerProperties prints out that it's using 1.6:
     [echo] Before setting properties:  compilerLevel16 = 1.6
and print one extra line in the first call, after 'Setting property java15compile.classpath to...':
[setJdkProperties] Setting property java16compile.classpath to <pathto>\ibm16\jre\lib\annotation.jar;<pathto>\ibm16\jre\lib\beans.jar;<pathto>\ibm16\jre\lib\charsets.jar;<pathto>\ibm16\jre\lib\deploy.jar;<pathto>\ibm16\jre\lib\ibmcertpathfw.jar;<pathto>\ibm16\jre\lib\ibmcertpathprovider.jar;<pathto>\ibm16\jre\lib\ibmcfw.jar;<pathto>\ibm16\jre\lib\ibmjcefw.jar;<pathto>\ibm16\jre\lib\ibmjgssfw.jar;<pathto>\ibm16\jre\lib\ibmjgssprovider.jar;<pathto>\ibm16\jre\lib\ibmjssefw.jar;<pathto>\ibm16\jre\lib\ibmjsseprovider2.jar;<pathto>\ibm16\jre\lib\ibmorb.jar;<pathto>\ibm16\jre\lib\ibmorbapi.jar;<pathto>\ibm16\jre\lib\ibmpkcs.jar;<pathto>\ibm16\jre\lib\ibmsaslfw.jar;<pathto>\ibm16\jre\lib\ibmxmlcrypto.jar;<pathto>\ibm16\jre\lib\j9zip.jar;<pathto>\ibm16\jre\lib\java.util.jar;<pathto>\ibm16\jre\lib\javascript.jar;<pathto>\ibm16\jre\lib\javaws.jar;<pathto>\ibm16\jre\lib\jlm.jar;<pathto>\ibm16\jre\lib\jndi.jar;<pathto>\ibm16\jre\lib\logging.jar;<pathto>\ibm16\jre\lib\management-agent.jar;<pathto>\ibm16\jre\lib\plugin.jar;<pathto>\ibm16\jre\lib\resources.jar;<pathto>\ibm16\jre\lib\rt.jar;<pathto>\ibm16\jre\lib\security.jar;<pathto>\ibm16\jre\lib\sql.jar;<pathto>\ibm16\jre\lib\vm.jar;<pathto>\ibm16\jre\lib\xml.jar;<pathto>\ibm16\jre\lib\xmldsigfw.jar


      was (Author: myrna):
    For what it's worth, the compile works correctly wtih the same  properties setting if I'm building with the ibm16 compiler.
  
> Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-3989
>                 URL: https://issues.apache.org/jira/browse/DERBY-3989
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools
>    Affects Versions: 10.5.0.0
>            Reporter: Rick Hillegas
>         Attachments: derby-3989-01-aa-optionalJava5.diff, derby-3989-01-ab-optionalJava5.diff
>
>
> This will make the build even more flexible. Probably involves the following changes:
> 1) Relaxing the requirement in PropertySetter that a Java 5 JDK must exist
> 2) Having PropertySetter look for a Java 6 JDK (and set java16compile.classpath accordingly) just as PropertySetter looks for a Java 5 JDK today
> 3) Changing the setCompilerProperties target in the master build script so that it
>   a) requires that java15compile.classpath or java16compile.classpath is set (it's ok for both to be set)
>   b) sets java15compile.classpath to ${jdbc3stubs}:${java16compile.classpath}

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


[jira] Commented: (DERBY-3989) Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be

Posted by "Myrna van Lunteren (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-3989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12663072#action_12663072 ] 

Myrna van Lunteren commented on DERBY-3989:
-------------------------------------------

Well, I can't figure out anything wrong with my settings...I am trying to build with ibm15, JAVA_HOME is set to my ibm15 installation, as is ANT_JAVA (for what it's worth), and I get 6 of those pesky version mismatch warnings. This is my output of printCompilerProperties=true:
(I replaced the actual path to my jvm's installations with <pathto> and single lines are chopped up...)
-----------------
printCompilerProperties:
     [echo] Before setting properties:  compilerLevel16 = 1.5
     [echo] Before setting properties:  jsr169compile.classpath = <pathto>/weme6.1/lib/jclFoundation11/classes.zip;<pathto>/weme6.1/lib/jdbc.jar
     [echo] Before setting properties:  j14lib = <pathto>/ibm142/jre/lib
     [echo] Before setting properties:  java14compile.classpath = ${java14compile.classpath}
     [echo] Before setting properties:  j15lib = <pathto>/ibm15/jre/lib
     [echo] Before setting properties:  java15compile.classpath = ${java15compile.classpath}
     [echo] Before setting properties:  j16lib = <pathto>/ibm16/jre/lib
     [echo] Before setting properties:  java16compile.classpath = ${java16compile.classpath}
[setJdkProperties] Setting property java14compile.classpath to <pathto>\ibm142\jre\lib\charsets.jar;<pathto>\ibm142\jre\lib\core.jar;<pathto>\ibm142\jre\lib\graphics.jar;<pathto>\ibm142\jre\lib\ibmcertpathprovider.jar;<pathto>\ibm142\jre\lib\ibmjaasactivelm.jar;<pathto>\ibm142\jre\lib\ibmjaaslm.jar;<pathto>\ibm142\jre\lib\ibmjcefw.jar;<pathto>\ibm142\jre\lib\ibmjgssprovider.jar;<pathto>\ibm142\jre\lib\ibmjssefips.jar;<pathto>\ibm142\jre\lib\ibmjsseprovider.jar;<pathto>\ibm142\jre\lib\ibmorb.jar;<pathto>\ibm142\jre\lib\ibmorbapi.jar;<pathto>\ibm142\jre\lib\ibmpkcs.jar;<pathto>\ibm142\jre\lib\plugin.jar;<pathto>\ibm142\jre\lib\security.jar;<pathto>\ibm142\jre\lib\server.jar;<pathto>\ibm142\jre\lib\xml.jar
[setJdkProperties] Setting property java15compile.classpath to <pathto>\ibm15\jre\lib\BD.jar;<pathto>\ibm15\jre\lib\charsets.jar;<pathto>\ibm15\jre\lib\core.jar;<pathto>\ibm15\jre\lib\deploy.jar;<pathto>\ibm15\jre\lib\graphics.jar;<pathto>\ibm15\jre\lib\ibmcertpathprovider.jar;<pathto>\ibm15\jre\lib\ibmcfw.jar;<pathto>\ibm15\jre\lib\ibmjaasactivelm.jar;<pathto>\ibm15\jre\lib\ibmjaaslm.jar;<pathto>\ibm15\jre\lib\ibmjcefw.jar;<pathto>\ibm15\jre\lib\ibmjgssprovider.jar;<pathto>\ibm15\jre\lib\ibmjsseprovider2.jar;<pathto>\ibm15\jre\lib\ibmorb.jar;<pathto>\ibm15\jre\lib\ibmorbapi.jar;<pathto>\ibm15\jre\lib\ibmpkcs.jar;<pathto>\ibm15\jre\lib\javaws.jar;<pathto>\ibm15\jre\lib\plugin.jar;<pathto>\ibm15\jre\lib\security.jar;<pathto>\ibm15\jre\lib\server.jar;<pathto>\ibm15\jre\lib\vm.jar;<pathto>\ibm15\jre\lib\xml.jar
[setJdkProperties] Setting property java16compile.classpath to <pathto>\ibm16\jre\lib\annotation.jar;<pathto>\ibm16\jre\lib\beans.jar;<pathto>\ibm16\jre\lib\charsets.jar;<pathto>\ibm16\jre\lib\deploy.jar;<pathto>\ibm16\jre\lib\ibmcertpathfw.jar;<pathto>\ibm16\jre\lib\ibmcertpathprovider.jar;<pathto>\ibm16\jre\lib\ibmcfw.jar;<pathto>\ibm16\jre\lib\ibmjcefw.jar;<pathto>\ibm16\jre\lib\ibmjgssfw.jar;<pathto>\ibm16\jre\lib\ibmjgssprovider.jar;<pathto>\ibm16\jre\lib\ibmjssefw.jar;<pathto>\ibm16\jre\lib\ibmjsseprovider2.jar;<pathto>\ibm16\jre\lib\ibmorb.jar;<pathto>\ibm16\jre\lib\ibmorbapi.jar;<pathto>\ibm16\jre\lib\ibmpkcs.jar;<pathto>\ibm16\jre\lib\ibmsaslfw.jar;<pathto>\ibm16\jre\lib\ibmxmlcrypto.jar;<pathto>\ibm16\jre\lib\j9zip.jar;<pathto>\ibm16\jre\lib\java.util.jar;<pathto>\ibm16\jre\lib\javascript.jar;<pathto>\ibm16\jre\lib\javaws.jar;<pathto>\ibm16\jre\lib\jlm.jar;<pathto>\ibm16\jre\lib\jndi.jar;<pathto>\ibm16\jre\lib\logging.jar;<pathto>\ibm16\jre\lib\management-agent.jar;<pathto>\ibm16\jre\lib\plugin.jar;<pathto>\ibm16\jre\lib\resources.jar;<pathto>\ibm16\jre\lib\rt.jar;<pathto>\ibm16\jre\lib\security.jar;<pathto>\ibm16\jre\lib\sql.jar;<pathto>\ibm16\jre\lib\vm.jar;<pathto>\ibm16\jre\lib\xml.jar;<pathto>\ibm16\jre\lib\xmldsigfw.jar
[setJdkProperties] Setting property java14compile.classpath to <pathto>\ibm142\jre\lib\charsets.jar;<pathto>\ibm142\jre\lib\core.jar;<pathto>\ibm142\jre\lib\graphics.jar;<pathto>\ibm142\jre\lib\ibmcertpathprovider.jar;<pathto>\ibm142\jre\lib\ibmjaasactivelm.jar;<pathto>\ibm142\jre\lib\ibmjaaslm.jar;<pathto>\ibm142\jre\lib\ibmjcefw.jar;<pathto>\ibm142\jre\lib\ibmjgssprovider.jar;<pathto>\ibm142\jre\lib\ibmjssefips.jar;<pathto>\ibm142\jre\lib\ibmjsseprovider.jar;<pathto>\ibm142\jre\lib\ibmorb.jar;<pathto>\ibm142\jre\lib\ibmorbapi.jar;<pathto>\ibm142\jre\lib\ibmpkcs.jar;<pathto>\ibm142\jre\lib\plugin.jar;<pathto>\ibm142\jre\lib\security.jar;<pathto>\ibm142\jre\lib\server.jar;<pathto>\ibm142\jre\lib\xml.jar
[setJdkProperties] Setting property java15compile.classpath to <pathto>\ibm15\jre\lib\BD.jar;<pathto>\ibm15\jre\lib\charsets.jar;<pathto>\ibm15\jre\lib\core.jar;<pathto>\ibm15\jre\lib\deploy.jar;<pathto>\ibm15\jre\lib\graphics.jar;<pathto>\ibm15\jre\lib\ibmcertpathprovider.jar;<pathto>\ibm15\jre\lib\ibmcfw.jar;<pathto>\ibm15\jre\lib\ibmjaasactivelm.jar;<pathto>\ibm15\jre\lib\ibmjaaslm.jar;<pathto>\ibm15\jre\lib\ibmjcefw.jar;<pathto>\ibm15\jre\lib\ibmjgssprovider.jar;<pathto>\ibm15\jre\lib\ibmjsseprovider2.jar;<pathto>\ibm15\jre\lib\ibmorb.jar;<pathto>\ibm15\jre\lib\ibmorbapi.jar;<pathto>\ibm15\jre\lib\ibmpkcs.jar;<pathto>\ibm15\jre\lib\javaws.jar;<pathto>\ibm15\jre\lib\plugin.jar;<pathto>\ibm15\jre\lib\security.jar;<pathto>\ibm15\jre\lib\server.jar;<pathto>\ibm15\jre\lib\vm.jar;<pathto>\ibm15\jre\lib\xml.jar

printCompilerProperties:
     [echo] After setting properties:  compilerLevel16 = 1.5
     [echo] After setting properties:  jsr169compile.classpath = <pathto>/weme6.1/lib/jclFoundation11/classes.zip;<pathto>/weme6.1/lib/jdbc.jar
     [echo] After setting properties:  j14lib = <pathto>/ibm142/jre/lib
     [echo] After setting properties:  java14compile.classpath = <pathto>\ibm142\jre\lib\charsets.jar;<pathto>\ibm142\jre\lib\core.jar;<pathto>\ibm142\jre\lib\graphics.jar;<pathto>\ibm142\jre\lib\ibmcertpathprovider.jar;<pathto>\ibm142\jre\lib\ibmjaasactivelm.jar;<pathto>\ibm142\jre\lib\ibmjaaslm.jar;<pathto>\ibm142\jre\lib\ibmjcefw.jar;<pathto>\ibm142\jre\lib\ibmjgssprovider.jar;<pathto>\ibm142\jre\lib\ibmjssefips.jar;<pathto>\ibm142\jre\lib\ibmjsseprovider.jar;<pathto>\ibm142\jre\lib\ibmorb.jar;<pathto>\ibm142\jre\lib\ibmorbapi.jar;<pathto>\ibm142\jre\lib\ibmpkcs.jar;<pathto>\ibm142\jre\lib\plugin.jar;<pathto>\ibm142\jre\lib\security.jar;<pathto>\ibm142\jre\lib\server.jar;<pathto>\ibm142\jre\lib\xml.jar
     [echo] After setting properties:  j15lib = <pathto>/ibm15/jre/lib
     [echo] After setting properties:  java15compile.classpath = <pathto>\ibm15\jre\lib\BD.jar;<pathto>\ibm15\jre\lib\charsets.jar;<pathto>\ibm15\jre\lib\core.jar;<pathto>\ibm15\jre\lib\deploy.jar;<pathto>\ibm15\jre\lib\graphics.jar;<pathto>\ibm15\jre\lib\ibmcertpathprovider.jar;<pathto>\ibm15\jre\lib\ibmcfw.jar;<pathto>\ibm15\jre\lib\ibmjaasactivelm.jar;<pathto>\ibm15\jre\lib\ibmjaaslm.jar;<pathto>\ibm15\jre\lib\ibmjcefw.jar;<pathto>\ibm15\jre\lib\ibmjgssprovider.jar;<pathto>\ibm15\jre\lib\ibmjsseprovider2.jar;<pathto>\ibm15\jre\lib\ibmorb.jar;<pathto>\ibm15\jre\lib\ibmorbapi.jar;<pathto>\ibm15\jre\lib\ibmpkcs.jar;<pathto>\ibm15\jre\lib\javaws.jar;<pathto>\ibm15\jre\lib\plugin.jar;<pathto>\ibm15\jre\lib\security.jar;<pathto>\ibm15\jre\lib\server.jar;<pathto>\ibm15\jre\lib\vm.jar;<pathto>\ibm15\jre\lib\xml.jar
     [echo] After setting properties:  j16lib = <pathto>/ibm16/jre/lib
     [echo] After setting properties:  java16compile.classpath = <pathto>\ibm16\jre\lib\annotation.jar;<pathto>\ibm16\jre\lib\beans.jar;<pathto>\ibm16\jre\lib\charsets.jar;<pathto>\ibm16\jre\lib\deploy.jar;<pathto>\ibm16\jre\lib\ibmcertpathfw.jar;<pathto>\ibm16\jre\lib\ibmcertpathprovider.jar;<pathto>\ibm16\jre\lib\ibmcfw.jar;<pathto>\ibm16\jre\lib\ibmjcefw.jar;<pathto>\ibm16\jre\lib\ibmjgssfw.jar;<pathto>\ibm16\jre\lib\ibmjgssprovider.jar;<pathto>\ibm16\jre\lib\ibmjssefw.jar;<pathto>\ibm16\jre\lib\ibmjsseprovider2.jar;<pathto>\ibm16\jre\lib\ibmorb.jar;<pathto>\ibm16\jre\lib\ibmorbapi.jar;<pathto>\ibm16\jre\lib\ibmpkcs.jar;<pathto>\ibm16\jre\lib\ibmsaslfw.jar;<pathto>\ibm16\jre\lib\ibmxmlcrypto.jar;<pathto>\ibm16\jre\lib\j9zip.jar;<pathto>\ibm16\jre\lib\java.util.jar;<pathto>\ibm16\jre\lib\javascript.jar;<pathto>\ibm16\jre\lib\javaws.jar;<pathto>\ibm16\jre\lib\jlm.jar;<pathto>\ibm16\jre\lib\jndi.jar;<pathto>\ibm16\jre\lib\logging.jar;<pathto>\ibm16\jre\lib\management-agent.jar;<pathto>\ibm16\jre\lib\plugin.jar;<pathto>\ibm16\jre\lib\resources.jar;<pathto>\ibm16\jre\lib\rt.jar;<pathto>\ibm16\jre\lib\security.jar;<pathto>\ibm16\jre\lib\sql.jar;<pathto>\ibm16\jre\lib\vm.jar;<pathto>\ibm16\jre\lib\xml.jar;<pathto>\ibm16\jre\lib\xmldsigfw.jar
-----------------------

my ant.properties currently looks like so:
-----------------------
printCompilerProperties=true

j14lib=c:/p4/p4main/ibm142/jre/lib
j15lib=c:/p4/p4main/ibm15/jre/lib
jdk16=c:/p4/p4main/ibm16
j16lib=${jdk16}/jre/lib

jsr169compile.classpath=C:/p4/p4main/weme6.1/lib/jclFoundation11/classes.zip;C:/p4/p4main/weme6.1/lib/jdbc.jar

junit=c:/p4/p4main/tools/java/junit.jar

proceed=true
sane=true
-----------------------

> Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-3989
>                 URL: https://issues.apache.org/jira/browse/DERBY-3989
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools
>    Affects Versions: 10.5.0.0
>            Reporter: Rick Hillegas
>         Attachments: derby-3989-01-aa-optionalJava5.diff, derby-3989-01-ab-optionalJava5.diff
>
>
> This will make the build even more flexible. Probably involves the following changes:
> 1) Relaxing the requirement in PropertySetter that a Java 5 JDK must exist
> 2) Having PropertySetter look for a Java 6 JDK (and set java16compile.classpath accordingly) just as PropertySetter looks for a Java 5 JDK today
> 3) Changing the setCompilerProperties target in the master build script so that it
>   a) requires that java15compile.classpath or java16compile.classpath is set (it's ok for both to be set)
>   b) sets java15compile.classpath to ${jdbc3stubs}:${java16compile.classpath}

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


[jira] Commented: (DERBY-3989) Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be

Posted by "Myrna van Lunteren (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-3989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12663116#action_12663116 ] 

Myrna van Lunteren commented on DERBY-3989:
-------------------------------------------

For what it's worth, the compile works correctly wtih the same  properties setting if I'm building with the ibm16 compiler.

> Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-3989
>                 URL: https://issues.apache.org/jira/browse/DERBY-3989
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools
>    Affects Versions: 10.5.0.0
>            Reporter: Rick Hillegas
>         Attachments: derby-3989-01-aa-optionalJava5.diff, derby-3989-01-ab-optionalJava5.diff
>
>
> This will make the build even more flexible. Probably involves the following changes:
> 1) Relaxing the requirement in PropertySetter that a Java 5 JDK must exist
> 2) Having PropertySetter look for a Java 6 JDK (and set java16compile.classpath accordingly) just as PropertySetter looks for a Java 5 JDK today
> 3) Changing the setCompilerProperties target in the master build script so that it
>   a) requires that java15compile.classpath or java16compile.classpath is set (it's ok for both to be set)
>   b) sets java15compile.classpath to ${jdbc3stubs}:${java16compile.classpath}

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


[jira] Commented: (DERBY-3989) Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be

Posted by "Kristian Waagan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-3989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12876663#action_12876663 ] 

Kristian Waagan commented on DERBY-3989:
----------------------------------------

Doing some investigative work on a Mac, I'm hitting this issue again. I'm also able to trigger the issue using Sun JDKs.
I believe the problem is easy to fix once we have determined that we actually do want to support this configuration:
 - invoke ant with a 1.5 JDK
 - a 1.6 JDK is available on the system (and automatically detected), but not used for compilation

We do get a version mismatch (class version 50 instead of 49) if we include the 1.6 libraries on the compile classpath used by the 1.5 compiler.
The way I see it, we have two options;
 a) Allow this configuration, JDBC 4 will be built using the JDBC 4 stubs.
 b) Disallow this configuration, abort build notifying the user that he/she should switch to a 1.6 compiler.



> Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-3989
>                 URL: https://issues.apache.org/jira/browse/DERBY-3989
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools
>    Affects Versions: 10.5.1.1
>            Reporter: Rick Hillegas
>             Fix For: 10.5.1.1
>
>         Attachments: derby-3989-01-aa-optionalJava5.diff, derby-3989-01-ab-optionalJava5.diff, derby-3989-01-ac-optionalJava5.diff
>
>
> This will make the build even more flexible. Probably involves the following changes:
> 1) Relaxing the requirement in PropertySetter that a Java 5 JDK must exist
> 2) Having PropertySetter look for a Java 6 JDK (and set java16compile.classpath accordingly) just as PropertySetter looks for a Java 5 JDK today
> 3) Changing the setCompilerProperties target in the master build script so that it
>   a) requires that java15compile.classpath or java16compile.classpath is set (it's ok for both to be set)
>   b) sets java15compile.classpath to ${jdbc3stubs}:${java16compile.classpath}

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


[jira] Commented: (DERBY-3989) Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be

Posted by "Rick Hillegas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-3989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12876668#action_12876668 ] 

Rick Hillegas commented on DERBY-3989:
--------------------------------------

Hi Kristian,

At some point we are going to start supporting environments where people want to build and test Derby using Java 6 even though they have experimental Java 7 jdks on their machines. This may be similar to your situation (a) and may argue against (b). Thanks.

> Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-3989
>                 URL: https://issues.apache.org/jira/browse/DERBY-3989
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools
>    Affects Versions: 10.5.1.1
>            Reporter: Rick Hillegas
>             Fix For: 10.5.1.1
>
>         Attachments: derby-3989-01-aa-optionalJava5.diff, derby-3989-01-ab-optionalJava5.diff, derby-3989-01-ac-optionalJava5.diff
>
>
> This will make the build even more flexible. Probably involves the following changes:
> 1) Relaxing the requirement in PropertySetter that a Java 5 JDK must exist
> 2) Having PropertySetter look for a Java 6 JDK (and set java16compile.classpath accordingly) just as PropertySetter looks for a Java 5 JDK today
> 3) Changing the setCompilerProperties target in the master build script so that it
>   a) requires that java15compile.classpath or java16compile.classpath is set (it's ok for both to be set)
>   b) sets java15compile.classpath to ${jdbc3stubs}:${java16compile.classpath}

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


[jira] Commented: (DERBY-3989) Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-3989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12663270#action_12663270 ] 

Knut Anders Hatlen commented on DERBY-3989:
-------------------------------------------

Silly question, but... Does it work without the patch? If I understand the comments on DERBY-3988 correctly, the combination of the IBM 1.5 compiler and java16compile.classpath pointing to IBM 1.6 doesn't work. According to those comments, the build should have printed a message telling you to use a Java 6 compiler. I'm wondering if the build doesn't emit that message because java16compile.classpath was set implicitly from j16lib, and the build scripts should be updated to check both java16compile.classpath and j16lib in checkForProblematicSettings().

> Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-3989
>                 URL: https://issues.apache.org/jira/browse/DERBY-3989
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools
>    Affects Versions: 10.5.0.0
>            Reporter: Rick Hillegas
>         Attachments: derby-3989-01-aa-optionalJava5.diff, derby-3989-01-ab-optionalJava5.diff
>
>
> This will make the build even more flexible. Probably involves the following changes:
> 1) Relaxing the requirement in PropertySetter that a Java 5 JDK must exist
> 2) Having PropertySetter look for a Java 6 JDK (and set java16compile.classpath accordingly) just as PropertySetter looks for a Java 5 JDK today
> 3) Changing the setCompilerProperties target in the master build script so that it
>   a) requires that java15compile.classpath or java16compile.classpath is set (it's ok for both to be set)
>   b) sets java15compile.classpath to ${jdbc3stubs}:${java16compile.classpath}

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


[jira] Commented: (DERBY-3989) Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be

Posted by "Myrna van Lunteren (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-3989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12662971#action_12662971 ] 

Myrna van Lunteren commented on DERBY-3989:
-------------------------------------------

I did a quick test and found that I get a build error in the jdbc4stubs:
jdbc4stubs:
    [mkdir] Created dir: <mypathto>\trunk\classes\stubs\jdbc4
    [javac] Compiling 93 source files to <mypathto>\trunk\classes\stubs\jdbc4
    [javac] <mypathto>\trunk\java\stubs\jdbc4\java\sql\Array.java:20: cannot access java.util.Map
    [javac] bad class file: <mypathto>\ibm16\jre\lib\java.util.jar(java/util/Map.class)
    [javac] class file has wrong version 50.0, should be 49.0
    [javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
    [javac] import java.util.Map;
    [javac]                  ^
    [javac] 1 error
    [javac] Compile failed; see the compiler error output for details.

I'll check on my settings etc. later,  but wanted to report this & make sure this didn't get committed before I have a chance to look into it.

> Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-3989
>                 URL: https://issues.apache.org/jira/browse/DERBY-3989
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools
>    Affects Versions: 10.5.0.0
>            Reporter: Rick Hillegas
>         Attachments: derby-3989-01-aa-optionalJava5.diff, derby-3989-01-ab-optionalJava5.diff
>
>
> This will make the build even more flexible. Probably involves the following changes:
> 1) Relaxing the requirement in PropertySetter that a Java 5 JDK must exist
> 2) Having PropertySetter look for a Java 6 JDK (and set java16compile.classpath accordingly) just as PropertySetter looks for a Java 5 JDK today
> 3) Changing the setCompilerProperties target in the master build script so that it
>   a) requires that java15compile.classpath or java16compile.classpath is set (it's ok for both to be set)
>   b) sets java15compile.classpath to ${jdbc3stubs}:${java16compile.classpath}

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


[jira] Resolved: (DERBY-3989) Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be

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

Rick Hillegas resolved DERBY-3989.
----------------------------------

    Resolution: Fixed
    Derby Info:   (was: [Patch Available])

> Set the Java 5 compilation path based on the Java 6 compilation path if a Java 5 environment can't be found but a Java 6 environment can be
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-3989
>                 URL: https://issues.apache.org/jira/browse/DERBY-3989
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools
>    Affects Versions: 10.5.0.0
>            Reporter: Rick Hillegas
>         Attachments: derby-3989-01-aa-optionalJava5.diff, derby-3989-01-ab-optionalJava5.diff, derby-3989-01-ac-optionalJava5.diff
>
>
> This will make the build even more flexible. Probably involves the following changes:
> 1) Relaxing the requirement in PropertySetter that a Java 5 JDK must exist
> 2) Having PropertySetter look for a Java 6 JDK (and set java16compile.classpath accordingly) just as PropertySetter looks for a Java 5 JDK today
> 3) Changing the setCompilerProperties target in the master build script so that it
>   a) requires that java15compile.classpath or java16compile.classpath is set (it's ok for both to be set)
>   b) sets java15compile.classpath to ${jdbc3stubs}:${java16compile.classpath}

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