+1.

However because of intense usage of Lambdas in Java 8, we should bring up guide lines for writing persistable code [1]
and elaborate more on the paragraph from [1]
"Never use anonymous inner classes - even in static contexts. The auto-generated class names are brittle, making backwards compatibility harder.".
The above is especially true for config values.

Valentin.

[1] https://brooklyn.apache.org/v/latest/ops/persistence/index.html#writing-persistable-code
На 27/02/17 в 16:06, Thomas Bouron написа:
Like the others: +1

On Mon, 27 Feb 2017 at 13:47 Mark Mc Kenna <[email protected]> wrote:

+1

*Mark McKenna*

*Web :: markmckenna.ie <http://markmckenna.ie/>*

*Work :: [email protected] <[email protected]>*

*PGP :: A7A9 24DE 638C 681A 8DEA FAD4 2B5D C759 B1EB 76A7
<https://pgp.mit.edu/pks/lookup?op=get&search=0x2B5DC759B1EB76A7>*

On 27 February 2017 at 13:42, Andrea Turli <[email protected]
wrote:

+1

Il 27/feb/2017 14:35, "Geoff Macartney" <
[email protected]
ha scritto:

+1

I have been hoping we could get round to this soon, think it's a good
idea.


On Mon, 27 Feb 2017 at 13:09 Aled Sage <[email protected]> wrote:

Hi all,

I propose we switch to Java 8 for Apache Brooklyn (i.e. require Java
8;
remove support for using Java 7 when running Brooklyn).

This will make our testing simpler, improving coverage (e.g. we don't
currently test everything with Brooklyn running both on Java 7 and
Java
8). It will make our lives easier as developers (e.g. don't need to
worry about Java 7 versus Java 8 when compiling, running tests and
manually testing Brooklyn; and we can use Java 8 features).

Java 7 reached end of life in April 2015 [1]; Java 8 was released
March
2014.

We can do this in three stages:

   * Switch to Java 8 as "official target"
       o Update our jenkins etc to always build/run with Java 8.
       o All developers/testers switch to Java 8 locally.
       o Add to the next release notes that Java 7 is no longer
supported.
   * Update our poms so they don't compile/check for Java 7
compatibility
     [3,4,5].
   * Developers free to start using Java 8 language features!

Stage 1 would be the bare minimum for the next release; I think we
should do all three stages before the 0.11.0 release.

Aled

[1] https://java.com/en/download/faq/java_7.xml
[2] https://www.infoq.com/news/2015/05/Oracle-Ends-Java-
7Public-Updates
[3]
https://github.com/apache/brooklyn-server/blob/master/pom.xml#L91
[4]

https://github.com/apache/brooklyn-server/blob/master/
parent/pom.xml#L557-L558
[5]
https://github.com/apache/brooklyn-server/blob/master/
parent/pom.xml#L950


--
Valentin Aitken
Software Engineer
Cloudsoft Corporation Ltd.
www.cloudsoft.io

Reply via email to