Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Sapphire » Feedback requested on raising minimum Java version
Feedback requested on raising minimum Java version [message #1508888] Fri, 12 December 2014 20:18 Go to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
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 #1514898 is a reply to message #1508888] Wed, 17 December 2014 17:57 Go to previous messageGo to next message
Greg Amerson is currently offline Greg AmersonFriend
Messages: 119
Registered: March 2010
Senior Member
Personally for our project's usage we have to stick with Java7. No java8 on the horizon at the moment. But as long as there are java7 compatible service releases in the future (aka 8.x.x) then I don't see any problem with moving the future sapphire versions to java8.
Re: Feedback requested on raising minimum Java version [message #1560931 is a reply to message #1514898] Mon, 12 January 2015 22:17 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
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.
Re: Feedback requested on raising minimum Java version [message #1569893 is a reply to message #1560931] Sat, 17 January 2015 19:37 Go to previous messageGo to next message
David Williams is currently offline David WilliamsFriend
Messages: 722
Registered: July 2009
Senior Member
<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>
Re: Feedback requested on raising minimum Java version [message #1575400 is a reply to message #1569893] Tue, 20 January 2015 20:13 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
Quote:
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. Smile


Sapphire 9 (our Mars contribution) will require Java 8 to run. Sapphire is not currently included in any EPP package.
Re: Feedback requested on raising minimum Java version [message #1694252 is a reply to message #1575400] Sun, 03 May 2015 19:49 Go to previous messageGo to next message
Max Rydahl Andersen is currently offline Max Rydahl AndersenFriend
Messages: 233
Registered: July 2009
Senior Member
Damn. Will this still be the case ?

We were planning on starting using sapphire in Mars and still support java 7 as rest of eclipse Mars does.
Re: Feedback requested on raising minimum Java version [message #1694347 is a reply to message #1694252] Mon, 04 May 2015 15:32 Go to previous message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
Yes, Sapphire 9 will require Java 8 to run, while Sapphire 8.2 will require Java 6. Multiple versions of Sapphire can be installed concurrently.
Previous Topic:Not enough space for icons in ubuntu.
Next Topic:Sapphire 9.0.0 in Mars?
Goto Forum:
  


Current Time: Fri Mar 29 11:50:26 GMT 2024

Powered by FUDForum. Page generated in 0.02854 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top