mukeran / zoj

Automatically exported from code.google.com/p/zoj
GNU General Public License v3.0
0 stars 0 forks source link

Java: Runtime Error with GregorianCalendar #61

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Reported by user in:
http://acm.zju.edu.cn/forum/viewtopic.php?f=8&t=6191

I've successfully compiled and run the submission with ID = 1782110.
GregorianCalendar is of package java.util, which should be allowed 
according to the FAQ.
Please check it.

Original issue reported on code.google.com by Charizar...@gmail.com on 4 Dec 2008 at 1:21

GoogleCodeExporter commented 8 years ago
GregorianCalendar works now. However the submission 1782110 contains other 
problems 
which generates a RuntimeError. May or may not be caused by the server. Will 
investigate it later. 1782105 is fine which also uses a GregorianCalendar.

Original comment by xuch...@gmail.com on 4 Dec 2008 at 2:45

GoogleCodeExporter commented 8 years ago
The user said:
A mere instantiation gets runtime error:
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.Locale;

public class Main {

   public static void main(String[] arg) {
      Calendar ca=GregorianCalendar.getInstance(Locale.US);
   }
}

And I've also tried it, it do gets Runtime Error.

Original comment by Charizar...@gmail.com on 5 Dec 2008 at 7:46

GoogleCodeExporter commented 8 years ago
Looks like a deployment issue. Redeployment solves the problem.

Original comment by xuch...@gmail.com on 6 Dec 2008 at 1:02