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

inconsistent implied -target setting

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 5.0
    • tools
    • generic
    • solaris_8

      Date: Fri, 01 Aug 2003 16:34:06 +0100
      From: Andreas Sterbenz <###@###.###>
      Subject: .class change in javac
      To: Neal M Gafter <###@###.###>

      Neal,

      it seems that since the T&L integration yesterday the code javac
      generates for the class literal has changed when -source 1.2 is used
      (see below, where $J150 is tiger-b13 and $JHOME is a current build of
      the master).

      Is that intentional?

      Andreas.

       >ls -l
      total 2
      -rw------- 1 as130790 green 122 Aug 1 16:16 Test.java
       >cat Test.java
      public class Test {
         public static void main(String[] arg) throws Exception {
           System.out.println(Test.class);
         }
      }
       >$J150/bin/javac -source 1.2 Test.java
       >ls -l
      total 4
      -rw------- 1 as130790 green 859 Aug 1 16:17 Test.class
      -rw------- 1 as130790 green 122 Aug 1 16:16 Test.java
       >rm *.class
       >$JHOME/bin/javac -source 1.2 Test.java
       >ls -l
      total 6
      -rw------- 1 as130790 green 830 Aug 1 16:17 Test$1.class
      -rw------- 1 as130790 green 618 Aug 1 16:17 Test.class
      -rw------- 1 as130790 green 122 Aug 1 16:16 Test.java
       >rm *.class
       >$JHOME/bin/javac -source 1.4 Test.java
       >ls -l
      total 4
      -rw------- 1 as130790 green 853 Aug 1 16:28 Test.class
      -rw------- 1 as130790 green 122 Aug 1 16:16 Test.java


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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: