1 2 /* 3 4 The author of this software is Ian Kaplan 5 Bear Products International 6 www.bearcave.com 7 iank@bearcave.com 8 9 Copyright (c) Ian Kaplan, 1999, 2000 10 11 "The Java Virtual Machine Specification" is copyrighted by Sun 12 Microsystems. 13 14 See copyright file for usage and licensing 15 16 */ 17 18 package attr; 19 20 import java.io.*; 21 import util.*; 22 import jconst.*; 23 24 /** 25 26 <p> 27 This class represents the depreciated attribute. This attribute 28 consists of only the attribute_name_index and length. Like the 29 Synthetic attribute this class does nothing, since the allocAttr 30 function in the attrFactory class reads the attribute_name_index 31 and length. 32 33 <p> 34 The depreciated attribute may be added to the attribute table 35 of a ClassFile, field_info or method_info class. 36 37 <p> 38 Sun's JVM Spec. states: 39 40 <blockquote> 41 A class, interface, method, or field may be marked using a 42 Deprecated attribute to indicate that the class, interface, 43 method, or field has been superseded. A runtime interpreter or 44 tool that reads the class file format, such as a compiler, can 45 use this marking to advise the user that a superseded class, 46 interface, method, or field is being referred to. The presence 47 of a Deprecated attribute does not alter the semantics of a class 48 or interface. 49 </blockquote> 50 51 @author Ian Kaplan 52 53 */ 54 public class deprecAttr extends attrInfo { 55 56 public deprecAttr(String name, int length) { 57 super( name, length ); 58 // that's all folks 59 } // deprecAttr constructor 60 61 } // deprecAttr 62