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

JDK 1.2 Compiler fails in "collectInheritedMethods"

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      generic, x86, sparc
    • OS:
      generic, solaris_2.5.1, solaris_2.6, windows_95, windows_nt

      Description



      Name: rm29839 Date: 12/22/97


      I don't know which source is causing the compilation failure as it appears to be in a referenced file
       (i.e. not the main file I'm compiling). I can't provide the complete source set ;-)

      sun.tools.java.CompilerError: collectInheritedMethods()
              at sun.tools.java.ClassDefinition.collectInheritedMethods(ClassDefinitio
      n.java:1249)
              at sun.tools.java.BinaryClass.basicCheck(BinaryClass.java:60)
              at sun.tools.java.ClassDeclaration.getClassDefinition(ClassDeclaration.j
      ava:122)
              at sun.tools.java.MemberDefinition.exceptionsFit(MemberDefinition.java:6
      92)
              at sun.tools.java.MemberDefinition.checkOverride(MemberDefinition.java:5
      50)
              at sun.tools.java.MemberDefinition.checkOverride(MemberDefinition.java:4
      56)
              at sun.tools.java.ClassDefinition.collectOneClass(ClassDefinition.java:1
      119)
              at sun.tools.java.ClassDefinition.collectInheritedMethods(ClassDefinitio
      n.java:1287)
              at sun.tools.java.BinaryClass.basicCheck(BinaryClass.java:60)
              at sun.tools.java.ClassDeclaration.getClassDefinition(ClassDeclaration.j
      ava:122)
              at sun.tools.javac.SourceMember.check(SourceMember.java:422)
              at sun.tools.javac.SourceClass.checkMembers(SourceClass.java:882)
              at sun.tools.javac.SourceClass.checkInternal(SourceClass.java:554)
              at sun.tools.javac.SourceClass.check(SourceClass.java:498)
              at sun.tools.javac.Main.compile(Main.java:391)
              at sun.tools.javac.Main.main(Main.java:571)
      error: An error has occurred in the compiler; please file a bug report (http://j
      ava.sun.com/cgi-bin/bugreport.cgi).
      (Review ID: 22122)
      ======================================================================
      ###@###.### (Dec 31, 1997):

      This bug was also reported by German business software maker SAP Technology AG:

      When I try to compile our project with the javac included in the JDK 1.2 beta2,
      I get the exception that I attached below. This prevents us from running our
      tests with classes that were compiled with the latest compiler. We are therefore
      testing JDK 1.2 b2 with classes that were compilerd using jdk 1.1.2

      <--- Begin Error Message --->
              javac GuiApi.java
      sun.tools.java.CompilerError: collectInheritedMethods()
              at sun.tools.java.ClassDefinition.collectInheritedMethods(ClassDefinition.java:1249)
              at sun.tools.java.BinaryClass.basicCheck(BinaryClass.java:60)
              at sun.tools.java.ClassDeclaration.getClassDefinition(ClassDeclaration.java:122)
              at sun.tools.java.MemberDefinition.exceptionsFit(MemberDefinition.java:692)
              at sun.tools.java.MemberDefinition.checkOverride(MemberDefinition.java:550)
              at sun.tools.java.MemberDefinition.checkOverride(MemberDefinition.java:456)
              at sun.tools.java.ClassDefinition.collectOneClass(ClassDefinition.java:1119)
              at sun.tools.java.ClassDefinition.collectInheritedMethods(ClassDefinition.java:1296)
              at sun.tools.java.BinaryClass.basicCheck(BinaryClass.java:60)
              at sun.tools.java.ClassDeclaration.getClassDefinition(ClassDeclaration.java:122)
              at sun.tools.java.ClassDefinition.collectOneClass(ClassDefinition.java:1050)
              at sun.tools.java.ClassDefinition.collectInheritedMethods(ClassDefinition.java:1287)
              at sun.tools.java.BinaryClass.basicCheck(BinaryClass.java:60)
              at sun.tools.java.ClassDeclaration.getClassDefinition(ClassDeclaration.java:122)
              at sun.tools.java.MemberDefinition.exceptionsFit(MemberDefinition.java:692)
              at sun.tools.java.MemberDefinition.checkOverride(MemberDefinition.java:550)
              at sun.tools.java.MemberDefinition.checkOverride(MemberDefinition.java:456)
              at sun.tools.java.ClassDefinition.collectOneClass(ClassDefinition.java:1119)
              at sun.tools.java.ClassDefinition.collectInheritedMethods(ClassDefinition.java:1296)
              at sun.tools.java.BinaryClass.basicCheck(BinaryClass.java:60)
              at sun.tools.java.ClassDeclaration.getClassDefinition(ClassDeclaration.java:122)
              at sun.tools.javac.SourceClass.checkSupers(SourceClass.java:641)
              at sun.tools.javac.SourceClass.resolveTypeStructure(SourceClass.java:1093)
              at sun.tools.javac.SourceClass.basicCheck(SourceClass.java:962)
              at sun.tools.java.ClassDeclaration.getClassDefinition(ClassDeclaration.java:122)
              at sun.tools.javac.SourceClass.checkSupers(SourceClass.java:641)
              at sun.tools.javac.SourceClass.resolveTypeStructure(SourceClass.java:1093)
              at sun.tools.javac.SourceClass.basicCheck(SourceClass.java:962)
              at sun.tools.java.ClassDeclaration.getClassDefinition(ClassDeclaration.java:122)
              at sun.tools.javac.Main.compile(Main.java:345)
              at sun.tools.javac.Main.main(Main.java:571)
      error: An error has occurred in the compiler; please file a bug report (http://java.sun.com/cgi-bin/bugreport.cgi).
      1 error
      NMAKE : fatal error U1077: 'javac' : return code '0x4'
      Stop.

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

       1998-01-23 ###@###.###da

      Thomas Remmert from Lufthansa Systems ###@###.###

      We were trying to compile source code generated by the
      corba idl compiler from iona. The sourcecode skeletons,
      produced by this compiler, made no problem when
      compiling under jdk 1.1.4

      We were trying to compile this code :
      C:\jdktest\myclasses\com\lhsystems\tango\middleware\airporttable\corbaobjects\_Aircraft\NoSuchRegistration.java
      ---------------------------------------------------------------------------------------------------------------
      package com.lhsystems.tango.middleware.airporttable.corbaobjects._Aircraft;

      import IE.Iona.Orbix2._CORBA;

      public class NoSuchRegistration extends IE.Iona.Orbix2.CORBA.UserException implements IE.Iona.Orbix2.CORBA.IDLCloneable, IE.Iona.Orbix2.CORBA.Marshalable {
          public String reason;

          public NoSuchRegistration() {
              super("Aircraft::NoSuchRegistration");
          }

          public NoSuchRegistration(String reason) {
              super("Aircraft::NoSuchRegistration");
              this.reason = reason;
          }

          public synchronized IE.Iona.Orbix2.CORBA.TypeCode _typeCode() {
              return new IE.Iona.Orbix2.CORBA.TypeCode("R~Aircraft_NoSuchRegistration~reason{0}");
          }
          public Object clone() {
              com.lhsystems.tango.middleware.airporttable.corbaobjects._Aircraft.NoSuchRegistration _dest;
              try {
                  _dest = (com.lhsystems.tango.middleware.airporttable.corbaobjects._Aircraft.NoSuchRegistration)super.clone();
                  if (reason != null)
                      _dest.reason = new String(reason);
              } catch (java.lang.CloneNotSupportedException _ex) {
                  throw new Error(_ex.getMessage());
              }
              return _dest;
          }
          public boolean equals(java.lang.Object _obj) {
              if ((_obj == null) || !(_obj instanceof com.lhsystems.tango.middleware.airporttable.corbaobjects._Aircraft.NoSuchRegistration))
                  return false;
              com.lhsystems.tango.middleware.airporttable.corbaobjects._Aircraft.NoSuchRegistration _src = (com.lhsystems.tango.middleware.airporttable.corbaobjects._Aircraft.NoSuchRegistration)_obj;
              if ((reason != null && !reason.equals(_src.reason)) ||
                  (reason== null && _src.reason != null))
                  return false;
              return true;
          }
          public void _marshal(IE.Iona.Orbix2.CORBA.MarshalBuffer _mb)
              throws IE.Iona.Orbix2.CORBA.SystemException
          {
              _mb.insertString(reason);
          }
          public void _unmarshal(IE.Iona.Orbix2.CORBA.MarshalBuffer _mb)
              throws IE.Iona.Orbix2.CORBA.SystemException
          {
              reason = _mb.extractString();
          }
          static {
              IE.Iona.Orbix2.CORBA.CORBAException.record_exception("Aircraft.NoSuchRegistration", "com.lhsystems.tango.middleware.airporttable.corbaobjects._Aircraft.NoSuchRegistration");
          }
      }
      --------------------------------------------------
      --------------------------------------------------
      The iona classes ( jdk 1.1 ) were under :
      C:\jdktest\myclasses\IE ... or more precisly
      C:\jdktest\myclasses\IE\Iona\Orbix2\CORBA
      --------------------------------------------------

      The direct ancestor
      C:\jdktest\myclasses\IE\Iona\Orbix2\CORBA\UserException.class was present

      The following error occured :

      C:\jdktest\myclasses\com\lhsystems\tango\middleware\airporttable\corbaobjects\_A
      ircraft>javac NoSuchRegistration.java
      sun.tools.java.CompilerError: collectInheritedMethods()
              at sun.tools.java.ClassDefinition.collectInheritedMethods(ClassDefinition.java:124)
              at sun.tools.java.BinaryClass.basicCheck(BinaryClass.java:60)
              at sun.tools.java.ClassDeclaration.getClassDefinition(ClassDeclaration.java:122)
              at sun.tools.java.ClassDefinition.collectOneClass(ClassDefinition.java:1050)
              at sun.tools.java.ClassDefinition.collectInheritedMethods(ClassDefinition.java:128)
              at sun.tools.java.BinaryClass.basicCheck(BinaryClass.java:60)
              at sun.tools.java.ClassDeclaration.getClassDefinition(ClassDeclaration.java:122)
              at sun.tools.java.MemberDefinition.exceptionsFit(MemberDefinition.java:692)
              at sun.tools.java.MemberDefinition.checkOverride(MemberDefinition.java:550)
              at sun.tools.java.MemberDefinition.checkOverride(MemberDefinition.java:456)
              at sun.tools.java.ClassDefinition.collectOneClass(ClassDefinition.java:1119)
              at sun.tools.java.ClassDefinition.collectInheritedMethods(ClassDefinitio
      n.java:1296)
              at sun.tools.java.BinaryClass.basicCheck(BinaryClass.java:60)
              at sun.tools.java.ClassDeclaration.getClassDefinition(ClassDeclaration.java:122)
              at sun.tools.java.ClassDefinition.collectOneClass(ClassDefinition.java:1050)
              at sun.tools.java.ClassDefinition.collectInheritedMethods(ClassDefinitio
      n.java:1287)

      --------------------------------------------------
      Our configuration
      classpath=.;c:\prg\jdk1.2\lib;;c:\jdktest\myclasses;
      jdk1.2beta2

      Orbix 2.0 Server running on SolarisOrbix 2
      Orbix Web 2.0 Java Client, with java OTS beta,
      and WonderWall IIOP Proxy patches.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tturnidgsunw Todd Turnidge (Inactive)
              Reporter:
              rmandelsunw Ronan Mandel (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: