Feedback requested on raising minimum Java version [message #1508888] |
Fri, 12 December 2014 15:18  |
Eclipse User |
|
|
|
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.
|
|
|
|
|
Re: Feedback requested on raising minimum Java version [message #1569893 is a reply to message #1560931] |
Sat, 17 January 2015 14:37   |
Eclipse User |
|
|
|
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 01/12/2015 05:17 PM, Konstantin
Komissarchik wrote:<br>
</div>
<blockquote cite="mid:m91h5j$hpv$1@xxxxxxxxe.org" type="cite">Based
on the feedback received, the minimum Java version for Sapphire 9
and beyond has been changed to Java 8. As a consequence of this
change, support for Indigo, Juno and Kepler was dropped (Eclipse
added Java 8 support in Luna). Sapphire 8.x will continue to
support Java 6 and all Eclipse releases going back to Indigo.
<br>
</blockquote>
Can you clarify for me, Konstantin. Does this mean for Mars release,
your source will require Java 8, but will still run on Java 7? Or,
Does it even need 1.8 JRE to run? (And, I'm just academically
curious ... no impact on me ... well, if it's part of any EPP
package I guess it might indirectly. :) <br>
<br>
Thanks, <br>
<br>
</body>
</html>
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04345 seconds