Try the following program to see how javac often generates duplicate
constant pool entries.
class T1 {
int x;
}
class T2 extends T1 {
{
int a = x
+ x + x + x + x
+ x + x + x + x
+ x + x + x + x
+ x + x + x + x
+ x + x + x + x
;
}
}
constant pool entries.
class T1 {
int x;
}
class T2 extends T1 {
{
int a = x
+ x + x + x + x
+ x + x + x + x
+ x + x + x + x
+ x + x + x + x
+ x + x + x + x
;
}
}