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

An exception has occurred in the compiler

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.0
    • tools
    • x86
    • windows_nt



      Name: rm29839 Date: 02/18/98


      Compile the following source :
      -------------------------------
      package com.cartesis.cyan.engine;

      import java.util.Hashtable;
      import java.util.Enumeration;

      public synchronized class XXX {
          private Hashtable _entities;
          
          public XXX() {
      _entities = new Hashtable(2000,1);
          }


          public void buildAggregationTrees() {
      Enumeration enum = _entities.elements();
      while (enum.hasMoreElements()) {
      if (enum.nextElement().getClass() == XXX.class) {
      ;
      }
      }

          }

      }


      Text that appeared :
      -------------------
      javac.exe -J'-Xmx30m' -d /dvt/cyan/classes -classpath '/dvt/cyan/classes;/dvt/cyan/src;.;d:\swing-0.7\swing.jar;d:\swing-0.7\windows.jar;d:\swing-0.7\motif.jar;d:\swing-0.7\jlf.jar;d:\jdk1.2beta2\lib\classes.zip;' XXX.java
      java.lang.NullPointerException
      at sun.tools.tree.ConditionalExpression.costInline(ConditionalExpression.java:153)
      at sun.tools.tree.BinaryExpression.costInline(BinaryExpression.java:180)
      at sun.tools.tree.ExpressionStatement.costInline(ExpressionStatement.java:67)
      at sun.tools.tree.WhileStatement.costInline(WhileStatement.java:78)
      at sun.tools.tree.CompoundStatement.costInline(CompoundStatement.java:144)
      at sun.tools.java.MemberDefinition.cleanup(MemberDefinition.java:875)
      at sun.tools.java.ClassDefinition.cleanup(ClassDefinition.java:1802)
      at sun.tools.javac.Main.compile(Main.java:410)
      at sun.tools.javac.Main.main(Main.java:571)
      error: An exception has occurred in the compiler; please file a bug report (http://java.sun.com/cgi-bin/bugreport.cgi).
      1 error
      (Review ID: 25051)
      ======================================================================

            dstoutamsunw David Stoutamire (Inactive)
            rmandelsunw Ronan Mandel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: