Great hack thwarted by final URL class

Why, oh, why is java.net.URL a final class? I am using Apache Commons VFS in our server and I thought I would subclass URL and do some magic to transparently handle VFS URLs where JRE URLs could be normally used. It can’t be done since a final class is, well, final, you cannot subclass it. Is there some JVM code hardwired to the URL class like there is for String? Who knows… Blech.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s