October 14, 2013

Java Generic Array Creation Error

Filed under: Technical — Tags: , — James Bunton @ 6:26 pm

Java Generics are a neat hack to save some typing. They have a bunch of problems though. Most of these are due to the lack of runtime type information. Today a friend asked why you can’t create do:

new ArrayList<String>[10]

The compiler gives the error error: generic array creation.

Following is a short explanation of what generics can and cannot do in Java.

(more…)

July 1, 2010

Australian Internet Filter (again)

Filed under: Rants,Technical — Tags: , , , — James Bunton @ 9:49 pm

I just realised that my previous post on this was 18 months ago. That’s depressing. Well, the situation has mostly stayed the same since then. It’s good that it has not become worse!
This post is a slightly edited version of an email I sent to my local representative about the matter.
(more…)

November 10, 2008

Internet Censorship in Australia

Filed under: Rants — Tags: , , , , — James Bunton @ 7:22 pm

The Australian government is planning to filter the internet to protect children. The idea is to have two tiers of filtering. The first tier is enabled by default for all internet connections and blocks all material considered unsafe for children. Adults will have the option to move to the second tier which is designed to only block illegal material.

(more…)