Reinstalling tzdata-java worked for me after updating openjdk-7 in the last few hours:
sudo apt-get --reinstall install tzdata-java
It was the only thing I did to fix the bug for me. I didn't modify the manually installed Eclipse Juno (4.2) that I was running when I noticed the bug, and the NullPointerException was reproducible using the following java file--compiled and run on the command line--up until I reinstalled tzdata-java:
import java.util.TimeZone;
public class TZTest {
public static void main(String args[]) { String[] availableIds = TimeZone.getAvailableIDs(); System.out.println("Length: "+availableIds.length);
for (int i = 0; i < availableIds.length; i++) { System.out.println("ID #"+i+": "+availableIds[i]);
}
}
}
Reinstalling tzdata-java worked for me after updating openjdk-7 in the last few hours:
sudo apt-get --reinstall install tzdata-java
It was the only thing I did to fix the bug for me. I didn't modify the manually installed Eclipse Juno (4.2) that I was running when I noticed the bug, and the NullPointerExce ption was reproducible using the following java file--compiled and run on the command line--up until I reinstalled tzdata-java:
import java.util.TimeZone;
public class TZTest {
String[ ] availableIds = TimeZone. getAvailableIDs ();
System. out.println( "Length: "+availableIds. length) ; length; i++) {
System. out.println( "ID #"+i+": "+availableIds[i]);
public static void main(String args[]) {
for (int i = 0; i < availableIds.
}
}
}