JSR 292 launched in Java 7

We just finished graduation season for another bunch of students. (Congratulations, Bobby and Joe!) And after about four years of work, it feels to me like JSR 292 has graduated. Oracle launched Java 7 today. I spoke on 292; here are my slides. The webcast will be posted on the Java 7 launch site in a few days.

Thanks, everyone, for your help!

Comments:

Awesome talk! I enjoy your computer sciency talks :-)

Probably a typo in slide#22?
assertEquals("xy".hashCode(), (int) HASHCODE.invoke("xy"));

Should this be instead?
assertEquals(System.identityHashCode("xy"), (int) HASHCODE.invoke("xy"));

-Arul

Posted by Arul on July 09, 2011 at 01:19 AM PDT #

Hi John
The 292 stuff is clearly the most significant innovation in java for... well, for ever.

I've been trying to build the samples in the test/jdk/lang/invoke directory but with no success. For example if I try compiling InvokeDynamicPrintArgs.java then I get a bunch of errors that start with this:

test/java/lang/invoke/InvokeDynamicPrintArgs.java:114: error: package indify does not exist
indify.Indify.main(args);
^
test/java/lang/invoke/InvokeDynamicPrintArgs.java:192: error: constructor ConstantCallSite in class ConstantCallSite cannot be applied to given types;
super(type, MH_createTarget());
^
required: MethodHandle
found: MethodType,MethodHandle

Now this looks quite reasonable because the constructor that is being called is marked as protected.

Is there a secret flag or some alternative mechanism to get these samples to compile?

Thanks
Paul.

Posted by guest on July 11, 2011 at 10:23 PM PDT #

invokedynamic is really a great achievement for Java and the JVM!

Posted by Herve on July 18, 2011 at 10:20 AM PDT #

So, what's next? :)

Posted by Alex Cruise on September 29, 2011 at 11:39 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

John R. Rose

Java maven, HotSpot developer, Mac user, Scheme refugee.

Once Sun and present Oracle engineer.

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today