Subject: Feedback requested on raising minimum Java version |
Author: Konstantin Komissarchik |
Date: Fri, 12 December 2014 15:18 |
I am considering raising Sapphire's minimum supported Java version for the release 9 in the Summer of 2015.
The current minimum supported Java version is 6, last raised for the 0.7 release.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=409330
Java 6 (2006)
Dropping support for Java 6 would allow us to integrate Sapphire models with the try-with-resources feature by making Sapphire Element extend AutoCloseable.
try( Example element = Example.TYPE.instantiate() )
{
...
}
vs currently
final Example element = Example.TYPE.instantiate();
try
{
...
}
finally
{
try
{
element.dispose();
}
catch( final Exception e ) {}
}
Java 7 (2011)
Dropping support for Java 7 would allow us to take advantage of multiple annotations per site improvement in Java 8 and allow us to remove the grouping annotations (@Service and @Services, @Validation and @Validations, etc.).
@Validation( rule = "${ Max >= Min }", message = "Must not be smaller than min" )
@Validation( rule = "${ Max <= 100 }", message = "Must be less than or equal to 100" )
ValueProperty PROP_MAX = new ValueProperty( TYPE, "Max" );
vs currently
@Validations
(
{
@Validation( rule = "${ Max >= Min }", message = "Must not be smaller than min" ),
@Validation( rule = "${ Max <= 100 }", message = "Must be less than or equal to 100" )
}
)
ValueProperty PROP_MAX = new ValueProperty( TYPE, "Max" );
Please respond to this thread with your thoughts on what minimum Java version support you anticipate needing beyond Sapphire 9 in Summer of 2015.
|
[ Reply ][ Quote ][ View Topic/Message ][ Unsubscribe from this forum ]
|