langtools/src/share/classes/com/sun/tools/classfile/ConstantPool.java
changeset 1870 57a1138dffc8
parent 735 372aa565a221
child 2212 1d3dc0e0ba0c
equal deleted inserted replaced
1869:0e193a8f3520 1870:57a1138dffc8
    36  *  deletion without notice.</b>
    36  *  deletion without notice.</b>
    37  */
    37  */
    38 public class ConstantPool {
    38 public class ConstantPool {
    39 
    39 
    40     public class InvalidIndex extends ConstantPoolException {
    40     public class InvalidIndex extends ConstantPoolException {
       
    41         private static final long serialVersionUID = -4350294289300939730L;
    41         InvalidIndex(int index) {
    42         InvalidIndex(int index) {
    42             super(index);
    43             super(index);
    43         }
    44         }
    44 
    45 
    45         @Override
    46         @Override
    48             return "invalid index #" + index;
    49             return "invalid index #" + index;
    49         }
    50         }
    50     }
    51     }
    51 
    52 
    52     public class UnexpectedEntry extends ConstantPoolException {
    53     public class UnexpectedEntry extends ConstantPoolException {
       
    54         private static final long serialVersionUID = 6986335935377933211L;
    53         UnexpectedEntry(int index, int expected_tag, int found_tag) {
    55         UnexpectedEntry(int index, int expected_tag, int found_tag) {
    54             super(index);
    56             super(index);
    55             this.expected_tag = expected_tag;
    57             this.expected_tag = expected_tag;
    56             this.found_tag = found_tag;
    58             this.found_tag = found_tag;
    57         }
    59         }
    65         public final int expected_tag;
    67         public final int expected_tag;
    66         public final int found_tag;
    68         public final int found_tag;
    67     }
    69     }
    68 
    70 
    69     public class InvalidEntry extends ConstantPoolException {
    71     public class InvalidEntry extends ConstantPoolException {
       
    72         private static final long serialVersionUID = 1000087545585204447L;
    70         InvalidEntry(int index, int tag) {
    73         InvalidEntry(int index, int tag) {
    71             super(index);
    74             super(index);
    72             this.tag = tag;
    75             this.tag = tag;
    73         }
    76         }
    74 
    77 
    80 
    83 
    81         public final int tag;
    84         public final int tag;
    82     }
    85     }
    83 
    86 
    84     public class EntryNotFound extends ConstantPoolException {
    87     public class EntryNotFound extends ConstantPoolException {
       
    88         private static final long serialVersionUID = 2885537606468581850L;
    85         EntryNotFound(Object value) {
    89         EntryNotFound(Object value) {
    86             super(-1);
    90             super(-1);
    87             this.value = value;
    91             this.value = value;
    88         }
    92         }
    89 
    93