Artifact 99d4c27fa72fa862646ad9e8b81c3e46bbf50a2122f13e375b889359dcc84b03:
- Executable file
r37/lisp/csl/jlisp/Exceptions_attribute.java
— part of check-in
[f2fda60abd]
at
2011-09-02 18:13:33
on branch master
— Some historical releases purely for archival purposes
git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/trunk/historical@1375 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 1000) [annotate] [blame] [check-ins using] [more...]
//04/03/02 for adding java/lang/Exception to Method_info //note if more exceptions need adding... //make a ByteArray.shortArrayToByteArray() for infotemp[1] //Exceptions_attribute.java import java.io.*; public class Exceptions_attribute extends Attribute_info { // short attribute_name_index; // int attribute_length; // byte info[]; //should be [attribute_length] short number_of_exceptions = (short)1; //only ONE exception short[] exception_index_table = new short[number_of_exceptions]; void toInfo() throws IOException { byte[][] infoTemp = new byte[2][0]; infoTemp[0] = ByteArray.shortToByteArray(number_of_exceptions); infoTemp[1] = ByteArray.shortToByteArray(exception_index_table[0]); //assume only one entry in exception_table info = ByteArray.flatBytes(infoTemp); attribute_length = info.length; } } // end of Exceptions_attribute.java