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

old javac and new javac not having same kind of behaviour

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 1.4.0
    • tools
    • generic
    • solaris_8

      javac is not compiling and creating class file if i use javac *.java
      and one of the file is having error. but with old javac is is compiling and genrating all the class file except the files having error

      the example i have a.java,b.java,c.java,d.java,e.java,f.java,g.java
      and d.java having error
      then javac *.java not genrating any .class file

      I have big project and if only one java file having some error and this java files r independent then it should copile rest of the java file and should not stop my bulid

      cjsqe4:/test/temp 52 % java -version
      java version "1.4.0-beta3"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta3-b83)
      Java HotSpot(TM) Client VM (build 1.4.0-beta3-b83, mixed mode)
      cjsqe4:/test/temp 53 % ls
      ./ ../ a.java b.java c.java d.java e.java f.java g.java
      cjsqe4:/test/temp 54 % javac *.java
      d.java:1: <identifier> expected
      public class d{dsfsf
                          ^
      d.java:1: cannot resolve symbol
      symbol : class dsfsf
      location: class d
      public class d{dsfsf
                     ^
      2 errors
      cjsqe4:/test/temp 55 % ls
      ./ ../ a.java b.java c.java d.java e.java f.java g.java
      cjsqe4:/test/temp 56 % ls -al
      total 18
      drwx--x--x 2 hl130885 staff 512 Oct 23 18:13 ./
      drwxrwxrwx 8 root other 512 Oct 23 18:05 ../
      -rw------- 1 hl130885 staff 17 Oct 23 18:01 a.java
      -rw------- 1 hl130885 staff 17 Oct 23 18:02 b.java
      -rw------- 1 hl130885 staff 17 Oct 23 18:03 c.java
      -rw------- 1 hl130885 staff 22 Oct 23 18:04 d.java
      -rw------- 1 hl130885 staff 17 Oct 23 18:04 e.java
      -rw------- 1 hl130885 staff 17 Oct 23 18:04 f.java
      -rw------- 1 hl130885 staff 17 Oct 23 18:04 g.java
      cjsqe4:/test/temp 57 % /net/sqindia/export/disk01/jdk/1.3.1/solsparc/bin/java -version
      java version "1.3.1"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
      Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)
      cjsqe4:/test/temp 58 % /net/sqindia/export/disk01/jdk/1.3.1/solsparc/bin/javac *.java
      d.java:1: <identifier> expected
      public class d{dsfsf
                          ^
      d.java:1: cannot resolve symbol
      symbol : class dsfsf
      location: class d
      public class d{dsfsf
                     ^
      2 errors
      cjsqe4:/test/temp 59 % ls -al
      total 18
      drwx--x--x 2 hl130885 staff 512 Oct 23 18:13 ./
      drwxrwxrwx 8 root other 512 Oct 23 18:05 ../
      -rw------- 1 hl130885 staff 17 Oct 23 18:01 a.java
      -rw------- 1 hl130885 staff 17 Oct 23 18:02 b.java
      -rw------- 1 hl130885 staff 17 Oct 23 18:03 c.java
      -rw------- 1 hl130885 staff 22 Oct 23 18:04 d.java
      -rw------- 1 hl130885 staff 17 Oct 23 18:04 e.java
      -rw------- 1 hl130885 staff 17 Oct 23 18:04 f.java
      -rw------- 1 hl130885 staff 17 Oct 23 18:04 g.java
      cjsqe4:/test/temp 60 % /net/sqindia/export/disk01/jdk/1.3.1/solsparc/bin/oldjavac *.java
      d.java:1: Identifier expected.
      public class d{dsfsf
                          ^
      1 error
      cjsqe4:/test/temp 61 % ls -al
      total 30
      drwx--x--x 2 hl130885 staff 512 Oct 23 18:17 ./
      drwxrwxrwx 8 root other 512 Oct 23 18:05 ../
      -rw------- 1 hl130885 staff 176 Oct 23 18:17 a.class
      -rw------- 1 hl130885 staff 17 Oct 23 18:01 a.java
      -rw------- 1 hl130885 staff 176 Oct 23 18:17 b.class
      -rw------- 1 hl130885 staff 17 Oct 23 18:02 b.java
      -rw------- 1 hl130885 staff 176 Oct 23 18:17 c.class
      -rw------- 1 hl130885 staff 17 Oct 23 18:03 c.java
      -rw------- 1 hl130885 staff 22 Oct 23 18:04 d.java
      -rw------- 1 hl130885 staff 176 Oct 23 18:17 e.class
      -rw------- 1 hl130885 staff 17 Oct 23 18:04 e.java
      -rw------- 1 hl130885 staff 176 Oct 23 18:17 f.class
      -rw------- 1 hl130885 staff 17 Oct 23 18:04 f.java
      -rw------- 1 hl130885 staff 176 Oct 23 18:17 g.class
      -rw------- 1 hl130885 staff 17 Oct 23 18:04 g.java
      cjsqe4:/test/temp 62 %
      cjsqe4:/test/temp 62 % cat *.java
      public class a{
      }public class b{
      }public class c{
      }public class d{dsfsf
      }public class e{
      }public class f{
      }public class g{


            gafter Neal Gafter (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: