Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JDK 1.7 new features

Reply
Thread Tools

JDK 1.7 new features

 
 
Roedy Green
Guest
Posts: n/a
 
      07-29-2011
I was pleased to see some features is JDK 1.7 that I had been asking
for since JDK 1.1. I'm surprised at how little there is new in 1.7. I
guess the recession made Oracle really pull in their horns. It is
mostly just a little syntatic sugar in the compiler.

binary literals.
underscores in literals to make them easier to proofread
string case labels
catch can handle multiple Exceptions.

I would think the biggest priority for 1.8 would be unifying arrays
and generics. They should be compatible, even if it means giving up
type erasure.
--
Roedy Green Canadian Mind Products
http://mindprod.com
Most of computer code is for telling the computer
what do if some very particular thing goes wrong.
 
Reply With Quote
 
 
 
 
Roedy Green
Guest
Posts: n/a
 
      07-30-2011
ANT with javac for 1.7 is issuing a warning message on every compile:

[javac] warning: [options] bootstrap class path not set in
conjunction with source 1.5

Any thoughts on why it is complaining?


--
Roedy Green Canadian Mind Products
http://mindprod.com
Most of computer code is for telling the computer
what do if some very particular thing goes wrong.
 
Reply With Quote
 
 
 
 
Stanimir Stamenkov
Guest
Posts: n/a
 
      07-30-2011
Sat, 30 Jul 2011 13:47:37 -0700, /Roedy Green/:

> ANT with javac for 1.7 is issuing a warning message on every compile:
>
> [javac] warning: [options] bootstrap class path not set in
> conjunction with source 1.5
>
> Any thoughts on why it is complaining?


Likely because classes get compiled compatible with the Java 5
format, but then against the Java 7 APIs which may result in linkage
against APIs not present in Java 5, therefore lead to failures when
run in such JRE version.

--
Stanimir
 
Reply With Quote
 
BGB
Guest
Posts: n/a
 
      07-30-2011
On 7/29/2011 9:28 AM, Roedy Green wrote:
> I was pleased to see some features is JDK 1.7 that I had been asking
> for since JDK 1.1. I'm surprised at how little there is new in 1.7. I
> guess the recession made Oracle really pull in their horns. It is
> mostly just a little syntatic sugar in the compiler.
>
> binary literals.
> underscores in literals to make them easier to proofread
> string case labels
> catch can handle multiple Exceptions.
>
> I would think the biggest priority for 1.8 would be unifying arrays
> and generics. They should be compatible, even if it means giving up
> type erasure.


IIRC, there should be several new VM features now, namely the addition
of the invokedynamic instruction and method-handles, as well as several
new constant-pool entry types, ..., which were planned to be officially
made available for the 1.7 release (unless something has changed, from
what I read says they should be there).

they are mostly intended for aiding in the implementation of dynamic
languages on the JVM.

I guess maybe by 1.8 there will be lambdas/closures.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
JDK 1.5 or JDK 1.6 Pep Java 19 07-15-2007 12:06 AM
regarding JDk 141 and JDK 122 for linux 64 bit Platform Jaggu Java 3 01-08-2007 10:47 AM
What is the difference between J2EE, JDK, JDK-SDK, JRE and J2SE packages ? Ulf Meinhardt Java 0 08-10-2006 07:12 PM
jEdit: compiles JDK 1.5.0 ok, but runs JDK 1.4.1 (why?) Thomas G. Marshall Java 5 08-06-2004 04:12 AM
Help with converting IDS from JDK 1.1 to JDK 1.4 Babar Java 1 05-20-2004 09:11 PM



Advertisments