jdk7

JSR305 vs. JSR308 (Java Type Anotations) - Which is going to be the standard?

Hello! There seem to be two different JSRs for annotations. JSR-305: Annotations for Software Defect Detection (additional resource) JSR-308: Annotations on Java Types (additional resource) Both seem to be oriented towards static code analysis. Do you know: which of the both is going to be either in Java SE 7 or Java EE 6? how "s...

closures mean fully type-safe criteria?

combining closures (FCM) and generics, would it be possible to have fully type-safe criteria. // The following works without a cast as Foo.id is a 'long' field. List<Long> ids = session.createCriteria(Foo.class) .setProjection(Foo#id) .list(); // The following is a compilation error, as F...

Closures in Java - syntax differences between the three major proposals?

Three major proposals for adding closures to the Java language has been presented: BGGA (Bracha Gafter Gosling Ahé) also known as "full closures", by Gilad Bracha, Neal Gafter, James Gosling and Peter von der Ahé CICE (Concise Instance Creation Expressions) also known as "simplified inner classes", by Bob Lee, Doug Lea and Josh Bloch F...

How do I rename (not move) a file in JDK7?

Hello! I'm a bit confused with all these new File I/O classes in JDK7. Let's say, I have a Path and want to rename the file, it represents. How do I specify the new name, when again a Path is expected? Path p = /* path to /home/me/file123 */; Path name = p.getName(); /* gives me file123 */ name.moveTo(/* what now? */); /* how to renam...

Java Closures - Current State

There have been many threads that correspond to this topic. http://stackoverflow.com/questions/116865/whats-the-current-state-of-closures-in-java http://stackoverflow.com/questions/233579/closures-in-java-7 All of the inputs have been that java 7 is NOT getting closures. It seems however closures will now be in java 7: http://weblogs...

Is MiGLayout going to be included in Java 7?

All I could find so far is this (open) Sun bug/RFE entry with 425 426 votes: http://bugs.sun.com/view_bug.do?bug_id=6530906 It's in third place in the list of RFEs. Tons of people have stated that it will be included in Java 7...but does anyone have any clear information on whether MiGLayout will be included? Answered Well, it see...

Are Open JDK and JDK7 the same thing?

Are Open JDK and JDK7 the same thing? ...

Is there an available build demonstrating new JDK 7 features?

I wish to test the new features that will came with the next JDK like project coin, project lambda etc. but the last JDK 7 to download will not have any already implemented! From which build can I test them? I think it's incredible that, now in may 2010 at few months to the official final release (november 2010????) for we developers t...

Will Closures be supported in the final JDK 7 or not?

Possible Duplicate: Closures in Java 7 There are so many articles and web pages about Closures in JDK 7. As i remember, first they said that Closures will be in JDK7, then they said that they won't be - but that was in the beginning of 2009. Then in the end of 2009 they said that they will be in JDK7 again. Now as i'm research...

How can I tell file deletion from directory deletion using JDK 7?

I am using JDK 7's WatchService to monitor directories. The ENTRY_DELETE event tells me an entry has been deleted. I can get the name of that entry doing something similar to: WatchEvent<Path> ev = cast(event); Path name = ev.context(); Path child = dir.resolve(name); I want to know if the deleted entry was a file or folder. Naturall...

java compiler's target version "jsr14" with JDK7/8

Can anybody tell me the "jsr14" target version of javac will be still available with JDK7/8? ...

Is it "safe" to develop for the JDK7 platform?

We have a project which (assumed) would be finished in 1-2 years. By then, the JDK7 (and hopefully the Java7 JCP spec) should be ready. But, I wonder, how probable is the "danger" that Oracle will make a "stupid" decision, which would make the JDK7 a less "attractive" platform then the existing JDK6? More specific, I'm afraid of scenar...