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

JCK-102a tests -- Compiler error: invalid typecode

XMLWordPrintable

    • sparc
    • solaris_2.5

      Tests (expr023 and expr024) compiled/run with JDK1.1i

      The following results were obtained for expr023 and expr024:

      #Test Results
      #Fri Oct 04 10:52:04 PDT 1996
      status=Failed. Compilation failed unexpectedly
      work=file:/home/hagen/RESULTS/sol/b2/java_spec/src/EXPR/expr023/
      execStatus=Failed. Compilation failed unexpectedly
      description=file:/home/hagen/JCK-102a/tests/java_spec/src/EXPR/expr023/expr023.html
      sections=compile.java
      harnessVersion=JT1.0_beta1
      end=Fri Oct 04 10:52:04 PDT 1996
      start=Fri Oct 04 10:51:59 PDT 1996
      environment=jdk1.1

      test: file:/home/hagen/JCK-102a/tests/java_spec/src/EXPR/expr023/expr023.html
      running script javasoft.sqe.harness.CompSimpExecTestScript -verify
      exec: /usr/local/java/jdk1.1/solaris/bin/javac -d /home/hagen/RESULTS/sol/b2/classes JCK-102a/tests/java_spec/src/EXPR/expr023/expr023.java CLASSPATH=/home/hagen/JCK-102a/classes:/home/hagen/RESULTS/sol/b2/classes:
      command exited, exit=1
      command result: status not set
      ----------ref:compile.java(0/0)----------
      ----------log:compile.java(19/1138)----------
      err = 1!
      sun.tools.java.CompilerError: invalid typecode: 13
      at sun.tools.java.Type.getTypeCodeOffset(Type.java:367)
      at sun.tools.tree.AddExpression.codeOperation(AddExpression.java:102)
      at sun.tools.tree.BinaryExpression.codeValue(BinaryExpression.java:177)
      at sun.tools.tree.AddExpression.codeValue(AddExpression.java:142)
      at sun.tools.tree.AssignExpression.code(AssignExpression.java:65)
      at sun.tools.tree.ExpressionStatement.code(ExpressionStatement.java:77)
      at sun.tools.tree.CompoundStatement.code(CompoundStatement.java:137)
      at sun.tools.javac.SourceField.code(SourceField.java:510)
      at sun.tools.javac.SourceField.code(SourceField.java:472)
      at sun.tools.javac.SourceClass.compileClass(SourceClass.java:913)
      at sun.tools.javac.SourceClass.compile(SourceClass.java:865)
      at sun.tools.javac.Main.compile(Main.java:267)
      at sun.tools.javac.Main.main(Main.java:375)
      JCK-102a/tests/java_spec/src/EXPR/expr023/expr023.java:0: class javasoft.sqe.tests.java_spec.expr023.expr023:int run(java.lang.String[], java.io.PrintStream)@sun.tools.java.CompilerError: invalid typecode: 13
      // Ident: @(#)expr023.java 1.1 96/02/19
      ^
      1 error
      test result: Failed. Compilation failed unexpectedly

      --------------------------------------------------------------------------------

      #Test Results
      #Fri Oct 04 10:52:04 PDT 1996
      status=Failed. Compilation failed unexpectedly
      work=file:/home/hagen/RESULTS/sol/b2/java_spec/src/EXPR/expr023/
      execStatus=Failed. Compilation failed unexpectedly
      description=file:/home/hagen/JCK-102a/tests/java_spec/src/EXPR/expr023/expr023.html
      sections=compile.java
      harnessVersion=JT1.0_beta1
      end=Fri Oct 04 10:52:04 PDT 1996
      start=Fri Oct 04 10:51:59 PDT 1996
      environment=jdk1.1

      test: file:/home/hagen/JCK-102a/tests/java_spec/src/EXPR/expr023/expr023.html
      running script javasoft.sqe.harness.CompSimpExecTestScript -verify
      exec: /usr/local/java/jdk1.1/solaris/bin/javac -d /home/hagen/RESULTS/sol/b2/classes JCK-102a/tests/java_spec/src/EXPR/expr023/expr023.java CLASSPATH=/home/hagen/JCK-102a/classes:/home/hagen/RESULTS/sol/b2/classes:
      command exited, exit=1
      command result: status not set
      ----------ref:compile.java(0/0)----------
      ----------log:compile.java(19/1138)----------
      err = 1!
      sun.tools.java.CompilerError: invalid typecode: 13
      at sun.tools.java.Type.getTypeCodeOffset(Type.java:367)
      at sun.tools.tree.AddExpression.codeOperation(AddExpression.java:102)
      at sun.tools.tree.BinaryExpression.codeValue(BinaryExpression.java:177)
      at sun.tools.tree.AddExpression.codeValue(AddExpression.java:142)
      at sun.tools.tree.AssignExpression.code(AssignExpression.java:65)
      at sun.tools.tree.ExpressionStatement.code(ExpressionStatement.java:77)
      at sun.tools.tree.CompoundStatement.code(CompoundStatement.java:137)
      at sun.tools.javac.SourceField.code(SourceField.java:510)
      at sun.tools.javac.SourceField.code(SourceField.java:472)
      at sun.tools.javac.SourceClass.compileClass(SourceClass.java:913)
      at sun.tools.javac.SourceClass.compile(SourceClass.java:865)
      at sun.tools.javac.Main.compile(Main.java:267)
      at sun.tools.javac.Main.main(Main.java:375)
      JCK-102a/tests/java_spec/src/EXPR/expr023/expr023.java:0: class javasoft.sqe.tests.java_spec.expr023.expr023:int run(java.lang.String[], java.io.PrintStream)@sun.tools.java.CompilerError: invalid typecode: 13
      // Ident: @(#)expr023.java 1.1 96/02/19
      ^
      1 error
      test result: Failed. Compilation failed unexpectedly


      -------------------------------------------------------------------------------

      NOTE: Also reported by Leonid and correspond to their tests as follows:

           tests/java_spec/src/EXPR/expr023/expr023.html (ours) ->
           lang/EXPR/expr029/expr02901/expr02901.html (theirs)

           tests/java_spec/src/EXPR/expr024/expr024.html ->
           lang/EXPR/expr031/expr03101/expr03101.html

           

            jrose John Rose
            lminersunw Linda Miner (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: