Deprecated API


Contents
Deprecated Classes
org.apache.bcel.util.ClassVector
          as of 5.1.1 - 7/17/2005 
 

Deprecated Methods
org.apache.bcel.generic.ReferenceType.firstCommonSuperclass(ReferenceType)
          use getFirstCommonSuperclass(ReferenceType t) which has slightly changed semantics. 
org.apache.bcel.generic.FieldOrMethod.getClassName(ConstantPoolGen)
          If the instruction references an array class, this method will return "java.lang.Object". For code generated by Java 1.5, this answer is sometimes wrong (e.g., if the "clone()" method is called on an array). A better idea is to use the getReferenceType() method, which correctly distinguishes between class types and array types. 
org.apache.bcel.generic.FieldOrMethod.getClassType(ConstantPoolGen)
          If the instruction references an array class, the ObjectType returned will be invalid. Use getReferenceType() instead. 
org.apache.bcel.classfile.LocalVariableTable.getLocalVariable(int)
          since 5.2 because multiple variables can share the same slot, use getLocalVariable(int index, int pc) instead. 
org.apache.bcel.generic.ObjectType.referencesClass()
          this method returns an inaccurate result if the class or interface referenced cannot be found: use referencesClassExact() instead 
org.apache.bcel.generic.ObjectType.referencesInterface()
          this method returns an inaccurate result if the class or interface referenced cannot be found: use referencesInterfaceExact() instead 
 

Deprecated Constructors
org.apache.bcel.util.ClassPath()
          Use SYSTEM_CLASS_PATH constant 
 



Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.