A multi-word argument to jre are split into several despite quotes

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 1.1.4
    • Component/s: hotspot
    • sparc
    • solaris_2.5.1



      Name: joT67522 Date: 11/04/97


      1. Sample program
      public class Argsbug {
        public static void main(String [] args) {
          for (int i = 0; i < args.length; i++) {
            System.out.println("Argument " + i + " : " + args[ i ]);
          }
        }
      }

      2. Compile
         Run (Using jre 1.1.4)
         jre Argsbug "A B C"

      3. Result on Solaris 2:
      rex:src> jre Argsbug "A B C"
      Argument 0 : A
      Argument 1 : B
      Argument 2 : C

      4. Arguments are handled OK on WinNT jre 1.1.4
      Argument 0 : A B C

      5. jdk1.1.4/bin/java also handles it OK.
      (Review ID: 19311)
      ======================================================================

            Assignee:
            Anand Palaniswamy (Inactive)
            Reporter:
            Joon Oh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: