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

NullPointerException during compilation

XMLWordPrintable



      Name: ngC57085 Date: 05/19/98



      The test lang/STMT/stmt025/stmt02502 is not compiled by jdk1.2beta4F with JIT
      under win32. NullPointerException occurs.

      java.lang.NullPointerException
      at sun.tools.tree.Vset.testVar(Compiled Code)
      at sun.tools.tree.IdentifierExpression.get(Compiled Code)
      at sun.tools.tree.IdentifierExpression.checkValue(Compiled Code)
      at sun.tools.tree.IdentifierExpression.checkAmbigName(Compiled Code)
      at sun.tools.tree.MethodExpression.checkValue(Compiled Code)
      at sun.tools.tree.MethodExpression.check(Compiled Code)
      at sun.tools.tree.ExpressionStatement.check(Compiled Code)
      at sun.tools.tree.IfStatement.check(Compiled Code)
      at sun.tools.tree.Statement.checkBlockStatement(Compiled Code)
      at sun.tools.tree.CompoundStatement.check(Compiled Code)
      at sun.tools.tree.Statement.checkMethod(Compiled Code)
      at sun.tools.javac.SourceMember.check(Compiled Code)
      at sun.tools.javac.SourceClass.checkMembers(Compiled Code)
      at sun.tools.javac.SourceClass.checkInternal(Compiled Code)
      at sun.tools.javac.SourceClass.check(SourceClass.java:510)
      at sun.tools.javac.Main.compile(Compiled Code)
      at sun.tools.javac.Main.main(Main.java:629)
      error: An exception has occurred in the compiler; please file a bug report (http://java.sun.com/cgi-bin/bugreport.cgi).
      1 error

      -----------------stmt02502.java------------------
      // Ident: @(#)stmt02502.java 1.6 96/11/16
      // Copyright 11/16/96 Sun Microsystems, Inc. All Rights Reserved
      package javasoft.sqe.tests.lang.stmt025.stmt02502;


      import java.io.PrintStream;

      public class stmt02502 {
        public static void main(String argv[]) {
           System.exit(run(argv, System.out) + 95/*STATUS_TEMP*/);
        }
        public static int run(String argv[],PrintStream out) {
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
           if (true)
              return 0/*STATUS_PASSED*/;
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           else
              out.println("failed");
           return 2/*STATUS_FAILED*/;
        }
      }
      ---------------------------------------------


      ======================================================================

            dviswanasunw Deepa Viswanathan (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: