Class BadSerializationException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by polyglot.types.SemanticException
              extended by polyglot.types.BadSerializationException
All Implemented Interfaces:

public class BadSerializationException
extends SemanticException

Signals an error in the class resolver system. This exception is thrown when a ClassResolver finds a class file that contains encoded Polyglot type information, but is unable to read in the serialized class information. The most likely cause of this exception is that the compiler (or compiler extension) has been modified since the class file was created, resulting in incompatible serializations. The solution is to delete the class file, and recompile it from the source.

See Also:
Serialized Form

Field Summary
Fields inherited from class polyglot.types.SemanticException
Constructor Summary
BadSerializationException(java.lang.String className)
BadSerializationException(java.lang.String className, Position position)
Method Summary
 java.lang.String getClassName()
Methods inherited from class polyglot.types.SemanticException
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public BadSerializationException(java.lang.String className)


public BadSerializationException(java.lang.String className,
                                 Position position)
Method Detail


public java.lang.String getClassName()