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

JDK1.4.0-B50 gives warning messages while compiling and running java programes.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P1 P1
    • None
    • 1.4.0
    • hotspot
    • None
    • sparc
    • solaris_7

      jdk1.4 build50

      works on windows

      fails on solaris
       
      following messages are thrown during compiling and running.
      Test program and results are as follows:

      Java HotSpot(TM) Client VM warning: ValueGen::do_LoopEnter(...) not implemented yet
      Java HotSpot(TM) Client VM warning: ValueGen::do_LoopExit(...) not implemented yet

      messages are thrown when tried to compile and run a java programe in b50 for merlin.

      ------------------Test program---------------------------
        
      import java.io.*;
       
      public class Exec01 {
          
          public static void main(String[] args) throws Exception {

              String cmds = "java Exec01Proc02";
              
              try {
                  Process process = Runtime.getRuntime().exec(cmds);
                  InputStream in = process.getInputStream();
                  DataInputStream din = new DataInputStream(in);
                  String line [] = new String[4];
                  int i = 0;
                  
                  while ((line[i] = din.readLine()) != null) {
                      System.out.println("line[ "+i+"]"+line[i]);
                      i++;
                  }
                  String expected = "Exec01Proc02 OK";
                  if (!expected.equals(line[0])) {
                       throw new Exception("expected string are not equal from Exec01Proc02 process");
                  }
                  in.close();
                  din.close();
                  
                  // Wait for subprocess to exit
                  try {
                      process.waitFor();
                  } catch (InterruptedException e) {
                      System.out.println ("InterruptedException thrown in Exec01 Exec01Test01 failed " + e);
                      e.printStackTrace();
                  }
                  
                  // Display exit status of subprocess
                  System.out.println("Exec01Proc02 exited with " + process.exitValue());
                  if (process.exitValue() !=0) {
                      throw new Exception("Exec01Proc02 did not run please check the classpath for Exec01Proc02");
                  }
                  System.out.println("Exec01 : Exec01Test01 passed");
          } catch (Exception e) {
          System.out.println (" Exception thrown in Exec01 Exec01Test01 failed " + e);
             e.printStackTrace();
              }
           }
         
        }
      ----------------------------------Test helper-----------------
      import java.io.*;
      import java.util.*;

      public class Exec01Proc02 {

          public static void main(String[] args) {
              System.out.println("Exec01Proc02 OK");
          }
           
      }
       ---------------------------------result win---------------------------
      H:\temp\Exec01>javac *.java
      Note: Exec01.java uses or overrides a deprecated API.
      Note: Recompile with -deprecation for details.

      H:\temp\Exec01>java Exec01
      line[ 0]Exec01Proc02 OK
      Exec01Proc02 exited with 0
      Exec01 : Exec01Test01 passed
      ---------------------------------------result solaris------------------
      javapro:/home/pande/temp/Exec01 92 % javac *.java
      Java HotSpot(TM) Client VM warning: ValueGen::do_LoopEnter(...) not implemented yet
      Java HotSpot(TM) Client VM warning: ValueGen::do_LoopExit(...) not implemented yet
      Note: Exec01.java uses or overrides a deprecated API.
      Note: Recompile with -deprecation for details.
      javapro:/home/pande/temp/Exec01 93 % java Exec01
      Java HotSpot(TM) Client VM warning: ValueGen::do_LoopEnter(...) not implemented yet
      Java HotSpot(TM) Client VM warning: ValueGen::do_LoopExit(...) not implemented yet
      line[ 0]Java HotSpot(TM) Client VM warning: ValueGen::do_LoopEnter(...) not implemented yet
      line[ 1]Java HotSpot(TM) Client VM warning: ValueGen::do_LoopExit(...) not implemented yet
      line[ 2]Exec01Proc02 OK
       Exception thrown in Exec01 Exec01Test01 failed java.lang.Exception: expected string are not equal from Exec01Proc02 process
      java.lang.Exception: expected string are not equal from Exec01Proc02 process
              at Exec01.main(Exec01.java:23)
      --------------------------------------------------------------------------------

            Unassigned Unassigned
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: