[jira] [Updated] (DERBY-6857) Deprecate support for building Derby under JDKs 6 and 7

2017-09-16 Thread Rick Hillegas (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-6857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rick Hillegas updated DERBY-6857:
-
Fix Version/s: 10.14.0.0

> Deprecate support for building Derby under JDKs 6 and 7
> ---
>
> Key: DERBY-6857
> URL: https://issues.apache.org/jira/browse/DERBY-6857
> Project: Derby
>  Issue Type: Bug
>  Components: Build tools
>Affects Versions: 10.13.1.0
>Reporter: Rick Hillegas
> Fix For: 10.14.0.0, 10.13.1.2
>
> Attachments: classReferenceComparison.txt, ClassReferenceReader.java, 
> derby-6857-01-aa-remove6and7.diff, derby-6857-02-aa-cleanupOldJdks.diff, 
> derby-6857-03-aa-minimumVersion.diff, 
> derby-6857-04-aa-pruneConstantClasses.diff, jardriftcheck.diff, 
> jvminfo-constants.diff, mac-derby-jar-verbose.txt, mac-sane-TypeId.class, 
> new-byte-codes.diff, windows-derby-jar-verbose.txt, Windows-sane-TypeId.class
>
>
> The community voted to stop supporting Java 6 and 7 as of release 10.13. See 
> the 2015-09-12 entry here: http://wiki.apache.org/db-derby/VoteResults. We no 
> longer need to support building Derby with those JDKs. This issue tracks 
> changes needed to remove that support and simplify the build.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (DERBY-6857) Deprecate support for building Derby under JDKs 6 and 7

2016-02-05 Thread Knut Anders Hatlen (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-6857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Knut Anders Hatlen updated DERBY-6857:
--
Attachment: jvminfo-constants.diff

Attaching jvminfo-constants.diff which removes the constants for Java 6 and 7 
from the JVMInfo class, since those Java versions are no longer supported.

> Deprecate support for building Derby under JDKs 6 and 7
> ---
>
> Key: DERBY-6857
> URL: https://issues.apache.org/jira/browse/DERBY-6857
> Project: Derby
>  Issue Type: Bug
>  Components: Build tools
>Affects Versions: 10.13.0.0
>Reporter: Rick Hillegas
> Attachments: ClassReferenceReader.java, Windows-sane-TypeId.class, 
> classReferenceComparison.txt, derby-6857-01-aa-remove6and7.diff, 
> derby-6857-02-aa-cleanupOldJdks.diff, derby-6857-03-aa-minimumVersion.diff, 
> derby-6857-04-aa-pruneConstantClasses.diff, jardriftcheck.diff, 
> jvminfo-constants.diff, mac-derby-jar-verbose.txt, mac-sane-TypeId.class, 
> new-byte-codes.diff, windows-derby-jar-verbose.txt
>
>
> The community voted to stop supporting Java 6 and 7 as of release 10.13. See 
> the 2015-09-12 entry here: http://wiki.apache.org/db-derby/VoteResults. We no 
> longer need to support building Derby with those JDKs. This issue tracks 
> changes needed to remove that support and simplify the build.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (DERBY-6857) Deprecate support for building Derby under JDKs 6 and 7

2016-02-05 Thread Knut Anders Hatlen (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-6857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Knut Anders Hatlen updated DERBY-6857:
--
Attachment: new-byte-codes.diff

I noticed that the build failed (classlister raised a ClassFormatError) if I 
added a lambda expression to the code. It happens because some new byte codes 
have been added to the Java class format in the latest releases. 
ClassInvestigator doesn't understand those byte codes and raises an error which 
makes classlister fail.

The attached patch teaches ClassInvestigator how to handle the new byte codes, 
and it transforms an inner class into a lambda expression to verify that it 
works.

> Deprecate support for building Derby under JDKs 6 and 7
> ---
>
> Key: DERBY-6857
> URL: https://issues.apache.org/jira/browse/DERBY-6857
> Project: Derby
>  Issue Type: Bug
>  Components: Build tools
>Affects Versions: 10.13.0.0
>Reporter: Rick Hillegas
> Attachments: ClassReferenceReader.java, Windows-sane-TypeId.class, 
> classReferenceComparison.txt, derby-6857-01-aa-remove6and7.diff, 
> derby-6857-02-aa-cleanupOldJdks.diff, derby-6857-03-aa-minimumVersion.diff, 
> derby-6857-04-aa-pruneConstantClasses.diff, jardriftcheck.diff, 
> mac-derby-jar-verbose.txt, mac-sane-TypeId.class, new-byte-codes.diff, 
> windows-derby-jar-verbose.txt
>
>
> The community voted to stop supporting Java 6 and 7 as of release 10.13. See 
> the 2015-09-12 entry here: http://wiki.apache.org/db-derby/VoteResults. We no 
> longer need to support building Derby with those JDKs. This issue tracks 
> changes needed to remove that support and simplify the build.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (DERBY-6857) Deprecate support for building Derby under JDKs 6 and 7

2016-01-28 Thread Rick Hillegas (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-6857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rick Hillegas updated DERBY-6857:
-
Attachment: derby-6857-04-aa-pruneConstantClasses.diff

Attaching derby-6857-04-aa-pruneConstantClasses.diff. This patch removes 
DRDAConstants, SanityState, and ReleaseProperties from the list of files which 
the classlister program considers for inclusion in the Derby jar files. I will 
run regression tests just to be safe.

I copied the Windows compiled version of TypeId.class (supplied by Bryan) into 
my classes directory and verified the following:

1) Without this patch, the jar file checker complains that an extra class 
(DRDAConstants) has turned up in derby.jar.

2) With this patch, the jar file checker does not complain.

Bryan, could you verify whether this patch fixes the problem which you are 
seeing on Windows?


Touches the following file:

M   java/build/org/apache/derbyBuild/classlister.java


> Deprecate support for building Derby under JDKs 6 and 7
> ---
>
> Key: DERBY-6857
> URL: https://issues.apache.org/jira/browse/DERBY-6857
> Project: Derby
>  Issue Type: Bug
>  Components: Build tools
>Affects Versions: 10.13.0.0
>Reporter: Rick Hillegas
> Attachments: ClassReferenceReader.java, Windows-sane-TypeId.class, 
> classReferenceComparison.txt, derby-6857-01-aa-remove6and7.diff, 
> derby-6857-02-aa-cleanupOldJdks.diff, derby-6857-03-aa-minimumVersion.diff, 
> derby-6857-04-aa-pruneConstantClasses.diff, jardriftcheck.diff, 
> mac-derby-jar-verbose.txt, mac-sane-TypeId.class, 
> windows-derby-jar-verbose.txt
>
>
> The community voted to stop supporting Java 6 and 7 as of release 10.13. See 
> the 2015-09-12 entry here: http://wiki.apache.org/db-derby/VoteResults. We no 
> longer need to support building Derby with those JDKs. This issue tracks 
> changes needed to remove that support and simplify the build.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (DERBY-6857) Deprecate support for building Derby under JDKs 6 and 7

2016-01-27 Thread Rick Hillegas (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-6857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rick Hillegas updated DERBY-6857:
-
Attachment: ClassReferenceReader.java
classReferenceComparison.txt

Hi Bryan,

Thanks for attaching your compiled version of TypeId.class. I am attaching 
ClassReferenceReader.java, a program which reads a class file and prints out 
the names of all the classes which it references. I am also attaching 
classReferenceComparison.txt. That file is the result of running 
ClassReferenceReader first on your Windows version of TypeId.class and then on 
my Mac OSX version of TypeId.class. This confirms that the Windows version 
references DRDAConstants but the Mac version doesn't.

It may be that some later version of JDK 8 fixes this discrepancy. But we can't 
count on everyone having the latest version of JDK 8. I recommend that we 
adjust classlister so that it omits the files of pure constants. I am happy to 
make this change.

What are your thoughts?

Thanks,
-Rick


> Deprecate support for building Derby under JDKs 6 and 7
> ---
>
> Key: DERBY-6857
> URL: https://issues.apache.org/jira/browse/DERBY-6857
> Project: Derby
>  Issue Type: Bug
>  Components: Build tools
>Affects Versions: 10.13.0.0
>Reporter: Rick Hillegas
> Attachments: ClassReferenceReader.java, Windows-sane-TypeId.class, 
> classReferenceComparison.txt, derby-6857-01-aa-remove6and7.diff, 
> derby-6857-02-aa-cleanupOldJdks.diff, derby-6857-03-aa-minimumVersion.diff, 
> jardriftcheck.diff, mac-derby-jar-verbose.txt, mac-sane-TypeId.class, 
> windows-derby-jar-verbose.txt
>
>
> The community voted to stop supporting Java 6 and 7 as of release 10.13. See 
> the 2015-09-12 entry here: http://wiki.apache.org/db-derby/VoteResults. We no 
> longer need to support building Derby with those JDKs. This issue tracks 
> changes needed to remove that support and simplify the build.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (DERBY-6857) Deprecate support for building Derby under JDKs 6 and 7

2016-01-26 Thread Bryan Pendleton (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-6857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bryan Pendleton updated DERBY-6857:
---
Attachment: Windows-sane-TypeId.class

 Directory of C:\Users\Bryan\derby\trunk\classes\org\apache\derby\iapi\types

01/25/2016  09:17 PM20,068 TypeId.class

> Deprecate support for building Derby under JDKs 6 and 7
> ---
>
> Key: DERBY-6857
> URL: https://issues.apache.org/jira/browse/DERBY-6857
> Project: Derby
>  Issue Type: Bug
>  Components: Build tools
>Affects Versions: 10.13.0.0
>Reporter: Rick Hillegas
> Attachments: Windows-sane-TypeId.class, 
> derby-6857-01-aa-remove6and7.diff, derby-6857-02-aa-cleanupOldJdks.diff, 
> derby-6857-03-aa-minimumVersion.diff, jardriftcheck.diff, 
> mac-derby-jar-verbose.txt, mac-sane-TypeId.class, 
> windows-derby-jar-verbose.txt
>
>
> The community voted to stop supporting Java 6 and 7 as of release 10.13. See 
> the 2015-09-12 entry here: http://wiki.apache.org/db-derby/VoteResults. We no 
> longer need to support building Derby with those JDKs. This issue tracks 
> changes needed to remove that support and simplify the build.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (DERBY-6857) Deprecate support for building Derby under JDKs 6 and 7

2016-01-26 Thread Rick Hillegas (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-6857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rick Hillegas updated DERBY-6857:
-
Attachment: mac-sane-TypeId.class

Hi Bryan,

Thanks for attaching the classlister output from your windows build. If I am 
reading it correctly, it appears that org.apache.derby.iapi.types.TypeId 
retains a reference to org.apache.derby.iapi.reference.DRDAConstants, causing 
it to be added to the list of files which classlister identifies for inclusion 
in derby.jar. But I don't see this inclusion on my Mac OSX output. I found the 
following information on the web, which suggests that the Java 8 compiler 
started adding references to files of pure constants (like DRDAConstants) to 
the constant pool section of referencing files like TypeId. Previous versions 
of the Java compiler did not do this:

   http://blog.bjhargrave.com/2014/04/java-8-bnd-and-references-to-compile.html

That may explain why you are seeing DRDAConstants. But it doesn't explain why I 
am not seeing it. I would expect the same behavior from the same rev level of 
javac regardless of the platform.

I am attaching the TypeId.class generated by my sane build of Derby under Java 
8 on Mac OSX. Could you attach the TypeId.class generated by your sane build of 
Derby under Java 8 on Windows? It would be interesting to compare the two files 
to see if there really is a difference in their constant pools or in other 
structures.

Thanks,
-Rick


> Deprecate support for building Derby under JDKs 6 and 7
> ---
>
> Key: DERBY-6857
> URL: https://issues.apache.org/jira/browse/DERBY-6857
> Project: Derby
>  Issue Type: Bug
>  Components: Build tools
>Affects Versions: 10.13.0.0
>Reporter: Rick Hillegas
> Attachments: derby-6857-01-aa-remove6and7.diff, 
> derby-6857-02-aa-cleanupOldJdks.diff, derby-6857-03-aa-minimumVersion.diff, 
> jardriftcheck.diff, mac-derby-jar-verbose.txt, mac-sane-TypeId.class, 
> windows-derby-jar-verbose.txt
>
>
> The community voted to stop supporting Java 6 and 7 as of release 10.13. See 
> the 2015-09-12 entry here: http://wiki.apache.org/db-derby/VoteResults. We no 
> longer need to support building Derby with those JDKs. This issue tracks 
> changes needed to remove that support and simplify the build.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (DERBY-6857) Deprecate support for building Derby under JDKs 6 and 7

2016-01-25 Thread Bryan Pendleton (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-6857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bryan Pendleton updated DERBY-6857:
---
Attachment: windows-derby-jar-verbose.txt

That's a very interesting analysis Rick, it feels like those
are key attributes of the behavior I'm seeing.

I attached my verbose output, but am not sure what it might mean.

I *definitely* get a DRDAConstants.class in my build:

C:\Users\Bryan\derby\trunk>dir /s DRDAConstants.class
 Volume in drive C is OS
 Volume Serial Number is 6602-B38E

 Directory of C:\Users\Bryan\derby\trunk\classes\org\apache\derby\iapi\reference


01/25/2016  09:17 PM 6,705 DRDAConstants.class
   1 File(s)  6,705 bytes

> Deprecate support for building Derby under JDKs 6 and 7
> ---
>
> Key: DERBY-6857
> URL: https://issues.apache.org/jira/browse/DERBY-6857
> Project: Derby
>  Issue Type: Bug
>  Components: Build tools
>Affects Versions: 10.13.0.0
>Reporter: Rick Hillegas
> Attachments: derby-6857-01-aa-remove6and7.diff, 
> derby-6857-02-aa-cleanupOldJdks.diff, derby-6857-03-aa-minimumVersion.diff, 
> jardriftcheck.diff, mac-derby-jar-verbose.txt, windows-derby-jar-verbose.txt
>
>
> The community voted to stop supporting Java 6 and 7 as of release 10.13. See 
> the 2015-09-12 entry here: http://wiki.apache.org/db-derby/VoteResults. We no 
> longer need to support building Derby with those JDKs. This issue tracks 
> changes needed to remove that support and simplify the build.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (DERBY-6857) Deprecate support for building Derby under JDKs 6 and 7

2016-01-25 Thread Rick Hillegas (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-6857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rick Hillegas updated DERBY-6857:
-
Attachment: mac-derby-jar-verbose.txt

Hi Bryan,

I don't have a good theory about the odd jar file contents which you are 
seeing. Here are some observations which may be relevant, though:

1) The big change which might affect this behavior is that those classes are 
now being compiled at Java 8 byte code level rather than Java 6 byte code level.

2) All of those classes are simply classes of constants.

3) That used to mean that the compiler would compile away any reference to the 
declaring class when those constants were referenced by another class. The 
constant value would simply be copied/substituted into the referencing class.

4) So those classes of constants should not be seen by the classlister program, 
which computes the closure of referenced classes when constructing the list of 
files to go into each Derby jar file.

5) Those classes do not turn up in the Derby jar files when I build with Java 8 
on Mac OSX.

6) But for some reason, it seems that classlister is seeing those files when 
you build with Java 8 on Windows.

Try running the buildjars target after adding the following line to the 
classlister call in the derbyjar sub-target of the top level build.xml:

  

I'm attaching the output I see when I add that line to the classlister call 
(see mac-derby-jar-verbose.txt). Maybe that will give us more information about 
how those files are being pulled into your build of derby.jar.

Thanks,
-Rick


> Deprecate support for building Derby under JDKs 6 and 7
> ---
>
> Key: DERBY-6857
> URL: https://issues.apache.org/jira/browse/DERBY-6857
> Project: Derby
>  Issue Type: Bug
>  Components: Build tools
>Affects Versions: 10.13.0.0
>Reporter: Rick Hillegas
> Attachments: derby-6857-01-aa-remove6and7.diff, 
> derby-6857-02-aa-cleanupOldJdks.diff, derby-6857-03-aa-minimumVersion.diff, 
> jardriftcheck.diff, mac-derby-jar-verbose.txt
>
>
> The community voted to stop supporting Java 6 and 7 as of release 10.13. See 
> the 2015-09-12 entry here: http://wiki.apache.org/db-derby/VoteResults. We no 
> longer need to support building Derby with those JDKs. This issue tracks 
> changes needed to remove that support and simplify the build.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (DERBY-6857) Deprecate support for building Derby under JDKs 6 and 7

2016-01-24 Thread Rick Hillegas (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-6857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rick Hillegas updated DERBY-6857:
-
Attachment: derby-6857-03-aa-minimumVersion.diff

Attaching derby-6857-03-aa-minimumVersion.diff. This patch replaces all of the 
hardcoded 'source="1.8"' and 'target="1.8"' with a min.version constant so that 
we can easily adjust the minimum jdk version in the future.

Tests ran cleanly for me on a sane Derby built and tested under Java 8.

Touches the following files:

--

M   java/build/org/apache/derbyBuild/build.xml
D   java/build/org/apache/derbyPreBuild/PropertySetter.java
M   java/tools/org/apache/derby/tools/build.xml
M   java/tools/org/apache/derby/impl/tools/build.xml
M   java/tools/org/apache/derby/iapi/tools/build.xml
M   java/storeless/build.xml
M   java/demo/toursdb/build.xml
M   java/demo/build.xml
M   java/engine/org/apache/derby/authentication/build.xml
M   java/engine/org/apache/derby/iapi/sql/build.xml
M   java/engine/org/apache/derby/iapi/jdbc/build.xml
M   java/engine/org/apache/derby/iapi/services/crypto/build.xml
M   java/engine/org/apache/derby/iapi/services/build.xml
M   java/engine/org/apache/derby/iapi/services/io/build.xml
M   java/engine/org/apache/derby/iapi/types/build.xml
M   java/engine/org/apache/derby/iapi/db/build.xml
M   java/engine/org/apache/derby/iapi/store/build.xml
M   java/engine/org/apache/derby/iapi/util/build.xml
M   java/engine/org/apache/derby/iapi/reference/build.xml
M   java/engine/org/apache/derby/iapi/build.xml
M   java/engine/org/apache/derby/agg/build.xml
M   java/engine/org/apache/derby/osgi/build.xml
M   java/engine/org/apache/derby/impl/load/build.xml
M   java/engine/org/apache/derby/impl/sql/build.xml
M   java/engine/org/apache/derby/impl/jdbc/build.xml
M   java/engine/org/apache/derby/impl/services/build.xml
M   java/engine/org/apache/derby/impl/db/build.xml
M   java/engine/org/apache/derby/impl/io/build.xml
M   java/engine/org/apache/derby/impl/store/build.xml
M   java/engine/org/apache/derby/vti/build.xml
M   java/engine/org/apache/derby/jdbc/build.xml
M   java/engine/org/apache/derby/diag/build.xml
M   java/engine/org/apache/derby/database/build.xml
M   java/engine/org/apache/derby/mbeans/build.xml
M   java/engine/org/apache/derby/security/build.xml
M   java/engine/org/apache/derby/io/build.xml
M   java/engine/org/apache/derby/catalog/build.xml
M   java/optional/build.xml
M   java/shared/build.xml
M   java/drda/org/apache/derby/impl/drda/build.xml
M   java/drda/org/apache/derby/drda/build.xml
M   java/testing/org/apache/derbyTesting/unitTests/build.xml
M   java/testing/org/apache/derbyTesting/system/nstest/build.xml
M   java/testing/org/apache/derbyTesting/system/optimizer/build.xml
M   java/testing/org/apache/derbyTesting/system/oe/build.xml
M   java/testing/org/apache/derbyTesting/system/mailjdbc/build.xml
M   java/testing/org/apache/derbyTesting/system/sttest/build.xml
M   java/testing/org/apache/derbyTesting/functionTests/tests/i18n/build.xml
M   
java/testing/org/apache/derbyTesting/functionTests/tests/storetests/build.xml
M   java/testing/org/apache/derbyTesting/functionTests/tests/lang/build.xml
M   java/testing/org/apache/derbyTesting/functionTests/tests/demo/build.xml
M   
java/testing/org/apache/derbyTesting/functionTests/tests/largedata/build.xml
M   java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/build.xml
M   java/testing/org/apache/derbyTesting/functionTests/tests/multi/build.xml
M   java/testing/org/apache/derbyTesting/functionTests/tests/store/build.xml
M   
java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/build.xml
M   java/testing/org/apache/derbyTesting/functionTests/tests/perf/build.xml
M   
java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/build.xml
M   java/testing/org/apache/derbyTesting/functionTests/tests/tools/build.xml
M   
java/testing/org/apache/derbyTesting/functionTests/tests/engine/build.xml
M   
java/testing/org/apache/derbyTesting/functionTests/tests/memory/build.xml
M   
java/testing/org/apache/derbyTesting/functionTests/tests/compatibility/build.xml
M   
java/testing/org/apache/derbyTesting/functionTests/tests/upgradeTests/build.xml
M   
java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/build.xml
M   
java/testing/org/apache/derbyTesting/functionTests/tests/management/build.xml
M   java/testing/org/apache/derbyTesting/functionTests/tests/nist/build.xml
M   
java/testing/org/apache/derbyTesting/functionTests/tests/memorydb/build.xml
M   java/testing/org/apache/derbyTesting/functionTests/harness/build.xml
M   java/testing/org/apache/derbyTesting/function

[jira] [Updated] (DERBY-6857) Deprecate support for building Derby under JDKs 6 and 7

2016-01-24 Thread Bryan Pendleton (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-6857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bryan Pendleton updated DERBY-6857:
---
Attachment: jardriftcheck.diff

Here's the jar classfile differences I get after I run jardriftcheck
to be able to successfully build my sane jars under jdk 1.8 on Windows.

> Deprecate support for building Derby under JDKs 6 and 7
> ---
>
> Key: DERBY-6857
> URL: https://issues.apache.org/jira/browse/DERBY-6857
> Project: Derby
>  Issue Type: Bug
>  Components: Build tools
>Affects Versions: 10.13.0.0
>Reporter: Rick Hillegas
> Attachments: derby-6857-01-aa-remove6and7.diff, 
> derby-6857-02-aa-cleanupOldJdks.diff, jardriftcheck.diff
>
>
> The community voted to stop supporting Java 6 and 7 as of release 10.13. See 
> the 2015-09-12 entry here: http://wiki.apache.org/db-derby/VoteResults. We no 
> longer need to support building Derby with those JDKs. This issue tracks 
> changes needed to remove that support and simplify the build.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (DERBY-6857) Deprecate support for building Derby under JDKs 6 and 7

2016-01-24 Thread Rick Hillegas (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-6857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rick Hillegas updated DERBY-6857:
-
Attachment: derby-6857-02-aa-cleanupOldJdks.diff

Attaching derby-6857-02-aa-cleanupOldJdks.diff. This patch cleans up some old 
references, in the build scripts, to jsr169 and to jdk 6. Tests passed cleanly 
for me on an insane build under jdk 8.


Touches the following files:

--

M   NOTICE
M   tools/release/notices/jdbcstubs.txt

Remove references to jsr 169 in the machinery which generates the NOTICE file.

--

M   java/build/org/apache/derbyBuild/ReleaseNotesGenerator.java
M   tools/release/templates/releaseSummaryTemplate.xml
M   releaseSummary.xml

Remove references to jsr 169 in the machinery which generates the release notes.

-- 

M   build.xml D   tools/ant/properties/compilepath.properties
M   tools/ant/properties/release.properties
M   tools/ant/properties/dirs.properties
M   tools/l10n/build.xml

Remove references to jsr 169 and jdk 6 in the build scripts.


> Deprecate support for building Derby under JDKs 6 and 7
> ---
>
> Key: DERBY-6857
> URL: https://issues.apache.org/jira/browse/DERBY-6857
> Project: Derby
>  Issue Type: Bug
>  Components: Build tools
>Affects Versions: 10.13.0.0
>Reporter: Rick Hillegas
> Attachments: derby-6857-01-aa-remove6and7.diff, 
> derby-6857-02-aa-cleanupOldJdks.diff
>
>
> The community voted to stop supporting Java 6 and 7 as of release 10.13. See 
> the 2015-09-12 entry here: http://wiki.apache.org/db-derby/VoteResults. We no 
> longer need to support building Derby with those JDKs. This issue tracks 
> changes needed to remove that support and simplify the build.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (DERBY-6857) Deprecate support for building Derby under JDKs 6 and 7

2016-01-23 Thread Rick Hillegas (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-6857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rick Hillegas updated DERBY-6857:
-
Attachment: derby-6857-01-aa-remove6and7.diff

Attaching derby-6857-01-aa-remove6and7.diff. This patch removes support for 
Java 6 and 7. This patch causes the Derby build to fail when run with any JDK 
other than JDK 8. This patch causes Derby to compile all sources into the byte 
code level of JDK 8.

After applying this patch, I have successfully built and tested a sane Derby 
with JDK 8. I have verified that trying to build with JDK 6 or 7 fails. I will 
now try building and testing an insane Derby with JDK 8.

Touches the following files:

--

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

Removes support for setting java16compile.classpath and java17compile.classpath.

--

D   java/stubs/jdbc4/sql
D   java/stubs/jdbc4/java/sql
D   java/stubs/jdbc4/java/sql/Connection.java
D   java/stubs/jdbc4/java/sql/SQLSyntaxErrorException.java
D   java/stubs/jdbc4/java/sql/RowIdLifetime.java
D   java/stubs/jdbc4/java/sql/BatchUpdateException.java
D   java/stubs/jdbc4/java/sql/Statement.java
D   java/stubs/jdbc4/java/sql/Types.java
D   java/stubs/jdbc4/java/sql/SQLTransientException.java
D   java/stubs/jdbc4/java/sql/SQLPermission.java
D   java/stubs/jdbc4/java/sql/Savepoint.java
D   java/stubs/jdbc4/java/sql/Date.java
D   java/stubs/jdbc4/java/sql/Array.java
D   java/stubs/jdbc4/java/sql/Blob.java
D   java/stubs/jdbc4/java/sql/SQLInput.java
D   java/stubs/jdbc4/java/sql/Clob.java
D   java/stubs/jdbc4/java/sql/SQLXML.java
D   java/stubs/jdbc4/java/sql/SQLOutput.java
D   java/stubs/jdbc4/java/sql/ParameterMetaData.java
D   java/stubs/jdbc4/java/sql/SQLFeatureNotSupportedException.java
D   java/stubs/jdbc4/java/sql/SQLInvalidAuthorizationSpecException.java
D   java/stubs/jdbc4/java/sql/CallableStatement.java
D   java/stubs/jdbc4/java/sql/RowId.java
D   java/stubs/jdbc4/java/sql/SQLWarning.java
D   java/stubs/jdbc4/java/sql/PreparedStatement.java
D   java/stubs/jdbc4/java/sql/SQLRecoverableException.java
D   java/stubs/jdbc4/java/sql/SQLData.java
D   java/stubs/jdbc4/java/sql/NClob.java
D   java/stubs/jdbc4/java/sql/Time.java
D   java/stubs/jdbc4/java/sql/ClientInfoStatus.java
D   java/stubs/jdbc4/java/sql/SQLNonTransientConnectionException.java
D   java/stubs/jdbc4/java/sql/Timestamp.java
D   java/stubs/jdbc4/java/sql/DatabaseMetaData.java
D   java/stubs/jdbc4/java/sql/SQLIntegrityConstraintViolationException.java
D   java/stubs/jdbc4/java/sql/SQLDataException.java
D   java/stubs/jdbc4/java/sql/Ref.java
D   java/stubs/jdbc4/java/sql/DriverPropertyInfo.java
D   java/stubs/jdbc4/java/sql/SQLException.java
D   java/stubs/jdbc4/java/sql/DataTruncation.java
D   java/stubs/jdbc4/java/sql/Wrapper.java
D   java/stubs/jdbc4/java/sql/SQLNonTransientException.java
D   java/stubs/jdbc4/java/sql/Struct.java
D   java/stubs/jdbc4/java/sql/SQLTimeoutException.java
D   java/stubs/jdbc4/java/sql/DriverManager.java
D   java/stubs/jdbc4/java/sql/SQLTransientConnectionException.java
D   java/stubs/jdbc4/java/sql/SQLClientInfoException.java
D   java/stubs/jdbc4/java/sql/ResultSet.java
D   java/stubs/jdbc4/java/sql/ResultSetMetaData.java
D   java/stubs/jdbc4/java/sql/Driver.java
D   java/stubs/jdbc4/java/sql/SQLTransactionRollbackException.java
D   java/stubs/jdbc4/javax
D   java/stubs/jdbc4/javax/sql
D   java/stubs/jdbc4/javax/sql/ConnectionEvent.java
D   java/stubs/jdbc4/javax/sql/PooledConnection.java
D   java/stubs/jdbc4/javax/sql/rowset
D   java/stubs/jdbc4/javax/sql/rowset/serial
D   java/stubs/jdbc4/javax/sql/rowset/serial/SerialClob.java
D   java/stubs/jdbc4/javax/sql/rowset/serial/SQLInputImpl.java
D   java/stubs/jdbc4/javax/sql/rowset/serial/SQLOutputImpl.java
D   java/stubs/jdbc4/javax/sql/rowset/serial/SerialStruct.java
D   java/stubs/jdbc4/javax/sql/rowset/serial/SerialDatalink.java
D   java/stubs/jdbc4/javax/sql/rowset/serial/SerialJavaObject.java
D   java/stubs/jdbc4/javax/sql/rowset/serial/SerialRef.java
D   java/stubs/jdbc4/javax/sql/rowset/serial/SerialArray.java
D   java/stubs/jdbc4/javax/sql/rowset/serial/SerialBlob.java
D   java/stubs/jdbc4/javax/sql/rowset/serial/SerialException.java
D   java/stubs/jdbc4/javax/sql/rowset/Predicate.java
D   java/stubs/jdbc4/javax/sql/rowset/WebRowSet.java
D   java/stubs/jdbc4/javax/sql/rowset/FilteredRowSet.java
D   java/stubs/jdbc4/javax/sql/rowset/JoinRowSet.java
D   java/stubs/jdbc4/javax/sql/rowset/Joinable.java
D   java/stubs/jdbc4/javax/sql/rowset/JdbcRowSet.java
D   java/stubs/jdbc