On 02/28/2012 05:46 AM, Mark Phippard wrote:
On Tue, Feb 28, 2012 at 8:36 AM, Hyrum K Wright
<hyrum.wri...@wandisco.com>  wrote:

I'm not sure I understand what you mean here.  People will be using
Java 7 to attempt to build the JavaHL bindings, so I think it makes
sense to use them on our tests.  In fact, this entire thing was
motivated by the fact that I upgraded the slave to the latest Ubuntu
Beta, and discovered it is now shipping Java 7 by default.

I assume he was asking how do we make sure we do not add features in
the source code that would only compile with JDK7.

Yes, that's correct. It's like moving from Python 2.X to 2.X+1, e.g. the "with" keywords. Java 7 picked up some nice new features from Project Coin [1]

From what I
recall, we specify the --source=1.5 option when compiling.  So that
should take care of it in terms of language features.  I think we
could technically still use new methods from the runtime libraries
without being flagged with an error, but that is really unlikely in
our codebase.

Using --source=1.5 should be sufficient.

Blair

[1] https://blogs.oracle.com/abuckley/resource/QConSF2011-JavaSE78.pdf

Reply via email to