Hi,
I am trying to know Diskspace used by Constants in a class, by using the
following ant api
ConstantPool cp = new ConstantPool();
cp.read(new DataInputStream(new FileInputStream(aFile)));
cp.size()
However, when a class is read it gives the following error
[CM] java.lang.ClassFormatError: Invalid Constant Pool entry Type 186
[CM] at
org.apache.tools.ant.taskdefs.optional.depend.constantpool.Co
nstantPoolEntry.readEntry(ConstantPoolEntry.java:159)
[CM] at
org.apache.tools.ant.taskdefs.optional.depend.constantpool.Co
nstantPool.read(ConstantPool.java:67)
Any clues why such thing happen.. Are there any compatibility issues related
to jvm versions.
The Java version I am using is
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)
Regards,
Raja Nagndra Kumar,
C.T.O
www.tejasoft.com
--
View this message in context:
http://old.nabble.com/java.lang.ClassFormatError%3A-Invalid-Constant-Pool-entry-Type-186-tp28668946p28668946.html
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]