Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6241877

Calendar throws FileNotFoundException in Debug

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.2
    • core-libs

      FULL PRODUCT VERSION :
      java version "1.5.0_02"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b09)
      Java HotSpot(TM) Client VM (build 1.5.0_02-b09, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [Version 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :
      When dubuging using the JDB, FileNotFoundException if thrown when initialising a Calendar instance. Othewise code executes fine when running, only throws when debug run.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Debug the included code snippet.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      No errors at all.
      ACTUAL -
      Exception occurred: java.io.FileNotFoundException (uncaught)"thread=main", java.
      io.FileInputStream.open(), line=-1 bci=-1

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import java.util.*;
      public class Untitled1
      {
      public static Calendar cal = new GregorianCalendar(TimeZone.getTimeZone("EST"));
      public static void main(String[] args)
      {

      System.out.println("The calendar is: \n\n");
      System.out.println(cal);
      }
      }
      ---------- END SOURCE ----------
      ###@###.### 2005-03-16 23:38:05 GMT

            okutsu Masayoshi Okutsu
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: