Friday, March 16, 2012

Eclipse verbosity

So, I was thinking... How verbose can Eclipse get? Well, apparently very. With this Java reflection statement above, all the rest of the code to handle the exceptions is automatically produced by Eclipse.

I wrote this because I use an abstract class (A) that two other classes (B and C) extend. I want to have a general method of calling the constructor of the classes B and C and passing an argument to it (maybe this wasn't the brightest of ideas, but that's what came up).

In the long run, I want to have small, readable code that is easy to understand. This seems to come somewhat in contradiction with the design principles of Java, but... we'll see how it pans out.

No comments:

Post a Comment