Java recently added a more strict verifier to the class loading mechanism. This isn't really a bad thing, necessarily, because it conforms to what Java was always supposed to do - except a lot of projects now rely on the…
Category: rocket-java
What happens when you have tests that need different resources with similar names? Confusion, that’s what. Let’s map out a project so we can see what happens: Parent Project Test Resources 1 Test Resources 2 Library Code (depends on both…
This morning, a user on ##java asked if private variables could be shadowed in subclasses. Upon being asked to try it and see, the user said that they didn't have the time, which was ironic (and wrong), but errr... what…
Map/Reduce is a strategy by which one uses a divide-and-conquer approach to handling data. The division is normally provided along natural lines, and it can provide some really impressive performance gains. The way it does this is by limiting the…
Trying to build something destined for a JVM? Use Maven. We know it sucks. We know you hate it. We know you'd prefer Gradle, or buildr, or Ant, or even make. Tough. Just because Maven sucks is no reason to…
By far, the most common questions in Freenode ##java center around the concept of classpath. It's funny, too, because the questions are often asked by people who - upon questioning - insist that they understand classpath, they really do... and…
So it's a known fact that Java passes references by value. That means that if I pass an Object of some kind into a method, I can change the values in the object, but not the object reference itself. Likewise,…
My data stores benchmark gives out timings in terms of nanoseconds, by making a list of response times and then applying statistical methods to get data out of the list. However, one part of that comes up every now and…
Woot, IRC FTW! Someone today asked a question about Spring that was actually relevant for once. The problem was that he wanted to inject not a bean, but a bean's referenced property into another bean. Put more succintly: He had…
From IRC, from whence many "interesting" questions come: "If I have a 4 dimensional integer array in Java, is there a way to initialise every element in it to a particular value?" Well. First off, you don't have a four-dimensional…