All Packages  This Package  Class Hierarchy  Class Search  Index

Class edu.utah.janos.tests.OverloadingCompilerBug
java.lang.Object
   |
   +----edu.utah.janos.tests.OverloadingCompilerBug

  Summary

public class  OverloadingCompilerBug
     extends java.lang.Object
{
          // Fields 1
     private int offset;

          // Constructors 1
     public OverloadingCompilerBug();

          // Methods 6
     public static void main(String[]);

     public void check();
     public void checkOffset(int);
     public void put(byte);
     public void put(int);
     public void put(short);
}

Kaffe's KJC compiler has a bug where it cannot distinguish correctly between overloaded methods put(byte), put(short), and put(int). The XDR code in ANTSR relies heavily on this distinction.

Its pretty obvious if you have the bug.

Author:
Janos Ministry of Development




  Fields

· offset

Summary  |  Top

   private int offset


  Constructors

· OverloadingCompilerBug

Summary  |  Top

   public OverloadingCompilerBug() 

Default constructor



  Methods

· main

Summary  |  Top
   public static void main(String[] args) 


· put

Summary  |  Top
   public void put(byte x) 


· put

Summary  |  Top
   public void put(short y) 


· put

Summary  |  Top
   public void put(int z) 


· checkOffset

Summary  |  Top
   public void checkOffset(int supposedToBe) 


· check

Summary  |  Top
   public void check() 


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7