eXist-db / exist

eXist Native XML Database and Application Platform
https://exist-db.org
GNU Lesser General Public License v2.1
428 stars 179 forks source link

Move to Java7 #141

Closed dizzzz closed 10 years ago

dizzzz commented 10 years ago

Let's move to Java7.......

time is ready, tests run well

adamretter commented 10 years ago

Ok. Makes no difference to me either way.

dizzzz commented 10 years ago

At least we'll be able to write cleaner code,rely on new features, e.g the new File/IO API, automatic resource management (close of streams!!) , new unicode, etc. Well you know them all no?

Esp. I expect a lot from the NIO2....

http://www.slideshare.net/boulderjug/55-things-in-java-7

shabanovd commented 10 years ago

+1 ... I was on a way to ask same question -)

adamretter commented 10 years ago

I have stopped writing Java 7 or even 8, in favour of using Scala. Any new code I add will most likely only be in Scala (excluding my setUid outstanding feature). I will probably only bugfix the existing Java code and that is Java 1.4 to 6. So I don't think that personally this will effect me much. Happy for you guys to use Java 7 though.

caseydawsonjordan commented 10 years ago

Adam, I understand the benefits of Scala, but don't you think that this might cause some compatibility issues? I know that Scala has great interoperability with java, but I was not convinced that it worked well in the other direction.

Just curious.

Cheers!

On Mon, Feb 3, 2014 at 2:42 PM, Adam Retter notifications@github.comwrote:

I have stopped writing Java 7 or even 8, in favour of using Scala. Any new code I add will most likely only be in Scala (excluding my setUid outstanding feature). I will probably only bugfix the existing Java code and that is Java 1.4 to 6. So I don't think that personally this will effect me much. Happy for you guys to use Java 7 though.

Reply to this email directly or view it on GitHubhttps://github.com/eXist-db/exist/issues/141#issuecomment-33991641 .

Casey Jordan easyDITA a product of Jorsek LLC "CaseyDJordan" on LinkedIn, Twitter & Facebook (585) 348 7399 easydita.com

This message is intended only for the use of the Addressee(s) and may contain information that is privileged, confidential, and/or exempt from disclosure under applicable law. If you are not the intended recipient, please be advised that any disclosure copying, distribution, or use of the information contained herein is prohibited. If you have received this communication in error, please destroy all copies of the message, whether in electronic or hard copy format, as well as attachments, and immediately contact the sender by replying to this e-mail or by phone. Thank you.

adamretter commented 10 years ago

That is true if you want your Scala code to be useable from Java you typically need to define a simpler dumbed down API. At the moment though I am not sure that my code would be used from Java, when I am adding new functionality it is usually pretty much self contained.

caseydawsonjordan commented 10 years ago

I guess I was thinking about things more like the exist core.

On Thu, Feb 6, 2014 at 12:04 PM, Adam Retter notifications@github.comwrote:

That is true if you want your Scala code to be useable from Java you typically need to define a simpler dumbed down API. At the moment though I am not sure that my code would be used from Java, when I am adding new functionality it is usually pretty much self contained.

Reply to this email directly or view it on GitHubhttps://github.com/eXist-db/exist/issues/141#issuecomment-34345313 .

Casey Jordan easyDITA a product of Jorsek LLC "CaseyDJordan" on LinkedIn, Twitter & Facebook (585) 348 7399 easydita.com

This message is intended only for the use of the Addressee(s) and may contain information that is privileged, confidential, and/or exempt from disclosure under applicable law. If you are not the intended recipient, please be advised that any disclosure copying, distribution, or use of the information contained herein is prohibited. If you have received this communication in error, please destroy all copies of the message, whether in electronic or hard copy format, as well as attachments, and immediately contact the sender by replying to this e-mail or by phone. Thank you.

adamretter commented 10 years ago

No problem, it is easy enough to add an API that is more easily usable from Java.

dizzzz commented 10 years ago

Ok, I'll update the scripts accordingly, at a good moment

adamretter commented 10 years ago

It might be better to go straight to Java 8, it seems that many people plan to leap-frog Java 7. I include some insight captured by Typesafe here: http://info.typesafe.com/acton/ct/3608/s-088e-1403/Bct/l-sf-cl-701C0000000iESrIAM-32eb/l-sf-cl-701C0000000iESrIAM-32eb:5c7/ct0_0/1