Unused ConstantPool
In a class file, there is an area called "Constant Pool" where information on various constants is saved. A Constant Pool includes values such as numbers, strings, etc. It also contains references to class fields, strings, methods, etc.
Each entry in a Constant Pool is called "Constant Pool Entry" and is referred to throghout a class file. The following are entries in a Constant Pool.
Entries in a Constant Pool
[Group I : for storing values]
- Utf8
- string
- Integer
- 2 byte integer
- Float
- single precision floating point
- Long
- 4 bytes integer
- Double
- double precision floating point
[Group II : for storing references to the "Constant Pool Entry"]
- Class
- reference to a class or an interface
- String
- reference to a string
- Fieldref
- reference to a field
- Methodref
- reference to a method
- InterfaceMethodref
- reference to an interface method
- NameAndType
- reference to the name and type of a field/method
If an entry is never referred to by the end of the compression, that entry will be deleted by SophiaCompress(Java) OASIS.