db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Hillegas (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-3117) Adjust master build script to require the Java 5 compiler to build Derby
Date Fri, 09 Nov 2007 21:44:50 GMT

    [ https://issues.apache.org/jira/browse/DERBY-3117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12541448
] 

Rick Hillegas commented on DERBY-3117:
--------------------------------------

Thanks for the continuing feedback,Thomas. A couple responses follow:

1) The java14compile.classpath is supposed to point at the 1.4 libs. We use this variable
to tell the compiler where the 1.4 libraries live so that the compiler can object if someone
uses Java 5 or Java 6 code in classes which are supposed to run on 1.4 VMs. Similarly, java15compile.classpath
is supposed to point at the Java 5 libs. That way the compiler can object if someone uses
Java 6 code in classes which are supposed to run on Java 5 VMs. For instance, it would be
a mistake to reference JDBC 4.0 extensions in code which is supposed to run on Java 5. So
the setting of java15compile.classpath looks right to me. The java15compile.classpath should
point into a Java 5 library, not a Java 6 library.

2) I think that PropertySetter is picking up the JRE rather than the JDK because both are
visible to it at the same directory level above $JAVA_HOME. We could put in special logic
to make PropertySetter prefer the JDK to the JRE if it finds both--but since the libraries
ought to contain the same jar files, I don't think this would have any practical impact.

Thanks.



> Adjust master build script to require the Java 5 compiler to build Derby
> ------------------------------------------------------------------------
>
>                 Key: DERBY-3117
>                 URL: https://issues.apache.org/jira/browse/DERBY-3117
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools
>    Affects Versions: 10.4.0.0
>            Reporter: Rick Hillegas
>            Assignee: Rick Hillegas
>         Attachments: BuildDefaults.txt, derby-3117-01-enforceJava5-aa.diff, derby-3117-01-enforceJava5-ab.diff,
derby-3117-01-enforceJava5-ac.diff, derby-3117-02-website-aa.diff, derby-3117-03-junit-aa.diff,
derby-3117-04-propertySetter-aa.diff, derby-3117-04-propertySetter-ab.diff, derby-3117-04-propertySetter-ac.diff,
derby-3117-04-propertySetter-ad.diff, derby-3117-04-propertySetter-ae.diff, derby-3117-04-propertySetter-af.diff,
derby_source.html
>
>
> Require the Java 5 compiler in order to build Derby as approved by the community recently:
http://www.nabble.com/-VOTE--Require-Java-5-%28or-later%29-compiler-to-build-Derby-tf4522491.html#a13030783

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


Mime
View raw message