edu.umd.cs.findbugs.classfile

Class ClassNameMismatchException

public class ClassNameMismatchException extends InvalidClassFileFormatException

Exception to indicate that the class name defined in a class file does not match its expected class name (as indicated by its resource name).

Author: David Hovemeyer

Constructor Summary
ClassNameMismatchException(ClassDescriptor expectedClassDescriptor, ClassDescriptor loadedClassDescriptor, ICodeBaseEntry codeBaseEntry)
Constructor.
Method Summary
ClassDescriptorgetLoadedClassDescriptor()

Constructor Detail

ClassNameMismatchException

public ClassNameMismatchException(ClassDescriptor expectedClassDescriptor, ClassDescriptor loadedClassDescriptor, ICodeBaseEntry codeBaseEntry)
Constructor.

Parameters: expectedClassDescriptor class descriptor we were expected based on the resource name loadedClassDescriptor class descriptor actually found in the class file codeBaseEntry codebase entry the class was loaded from

Method Detail

getLoadedClassDescriptor

public ClassDescriptor getLoadedClassDescriptor()

Returns: Returns the loadedClassDescriptor.

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.