org.datanucleus.enhancer.bcel
Class BCELClassEnhancer.SerialVersionUID

java.lang.Object
  extended by org.datanucleus.enhancer.bcel.BCELClassEnhancer.SerialVersionUID
Enclosing class:
BCELClassEnhancer

public class BCELClassEnhancer.SerialVersionUID
extends java.lang.Object

Compute the serialVersionUID

Author:
unknown

Constructor Summary
BCELClassEnhancer.SerialVersionUID()
           
 
Method Summary
 long computeSerialVersionUID(org.apache.bcel.classfile.JavaClass javaClass)
          This method computes the serialVersionUID of a BCEL JavaClass in the same way that the java.io.ObjectStreamClass class computes it for a java.lang.Class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BCELClassEnhancer.SerialVersionUID

public BCELClassEnhancer.SerialVersionUID()
Method Detail

computeSerialVersionUID

public long computeSerialVersionUID(org.apache.bcel.classfile.JavaClass javaClass)
This method computes the serialVersionUID of a BCEL JavaClass in the same way that the java.io.ObjectStreamClass class computes it for a java.lang.Class.

This method is a port of version 1.98 of the ObjectStreamClass's computeDefaultSUID method.

Compute a hash for the specified class. Incrementally add items to the hash accumulating in the digest stream. Fold the hash into a long. Use the SHA secure hash function.

Parameters:
javaClass - the class to compute the serialversionUID from
Returns:
the serial version uid
Throws:
java.lang.InternalError
java.lang.SecurityException


Copyright © 2009. All Rights Reserved.