As part of my sabbatical, in April, I will be in Alabama at UAB as invited professor.
A breaking change for me. No kid, no wife for a whole month.
In one way, I will have time to do some research I had to delay due to lack of time. But in another way,
I worry to have too much free time :)
JSR 292 introduces a new bytecode instruction invokedynamic but also several new kind of constant pool constants. Which means that most of the tools that parse bytecodes like ASM, BCEL, findbugs or EMMA will need to be updated to be java 7 compatible.
Free Java at FOSDEM 2011 is over. This year was a 'grand cru',
mixing old friends and new faces, too bad that Ian and Dalibor was not there, we miss you.
Today, I want to show you a way to implement method invocation with named parameters using JSR 292.
But before using JSR 292 API, we need a way to reflect the parameter names of any existing methods.
The problem is that java.lang.reflect doesn't provide any way to get those parameter names,
When the JSR 292 was started, it was clear that the users of this new API was dynamic(ally typed) languages so the package was naturally named java.dyn
Happy new year !
The idea of the lazy Singleton Pattern is to initialize a static field only when needed and not during the initialization of the class. The code for that pattern is this one:
This a question that is often asked by my students:
How to get the current class in Java ?
In the code below, instead of A.class, I want to something like "get the current class".
One of my student even invent a new syntax for that purpose this.class.
But guess what, the compiler doesn't like invented syntaxes.
In a single move, IBM to join OpenJDK, Oracle kicks the Google's butt twice.
I can't restrain myself to read the press release like this: