edu.umd.cs.findbugs.classfile

Class ClassNameMismatchException

  • All Implemented Interfaces:
    Serializable


    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
    See Also:
    Serialized Form
    • 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.

Copyright © 2003–2015. All rights reserved.