Skip to main content

Programming Related Items on Java.net

Thorbjørn Ravn Andersen offers a simple example of Java Instrumentation by adding logging statements to the beginning and end of all methods of an arbitrary class.
April 24, 2008
Why does Java 6 expose the javac compiler through a programmatic interface? It's not just for building IDEs. In this article, Deepa Sobhana and Seema Richard show how to use the new feature for static code analysis, with an example that verifies that classes overriding Object.equals() also implement the required override of Object.hashcode().
April 10, 2008
Masoud Kalali shows how to use and extend OpenPTK, which hides the implementation differences between different user stores, allowing developers to use multiple stores with a common API.
March 27, 2008
John O'Conner shows how JSR 295, Beans Binding, eliminates burdensome "glue code" for wiring up relationships between objects.
March 20, 2008
In this entry of "The Open Road," Elliotte Rusty Harold takes a look at how JSR 294 ("superpackages"), intended to be part of Java SE 7, proposes to fix the problem of class and member visibility between packages that look like they should be related, but aren't.
March 6, 2008
In this introductory article, Albert Attard introduces the basic techniques of reflection: discovering and using a class's methods and fields at runtime, and discusses cases where this can be a powerful technique.
February 12, 2008
Binildas C. A. shows how to combine the database's ROWNUM function with Java SE 5's thread pools to create highly effective pagination.
January 31, 2008