Fixed some bugs in reading the constant pool and added tests

This commit is contained in:
Roel Spilker
2010-08-07 22:27:32 +02:00
parent b14eef7eed
commit 2683c24ee9
3 changed files with 199 additions and 10 deletions
+11
View File
@@ -1,5 +1,16 @@
public class Foo implements java.util.RandomAccess {
private static final long LONG = 123L;
private static final String ONE = "Eén";
private static final int INT = 123;
private static final double DOUBLE = 1.23;
private static final double DOUBLE_NAN = Double.NaN;
private static final double DOUBLE_INF = Double.POSITIVE_INFINITY;
private static final double DOUBLE_NEG_INF = Double.NEGATIVE_INFINITY;
private static final float FLOAT = 1.23F;
private static final float FLOAT_NAN = Float.NaN;
private static final float FLOAT_INF = Float.POSITIVE_INFINITY;
private static final float FLOAT_NEG_INF = Float.NEGATIVE_INFINITY;
{
String value = toString();