rt/vm/src/main/java/org/apidesign/vm4brwsr/ByteCodeParser.java
branchReducedStack
changeset 1474 3775fe162073
parent 1471 6655ae68ef9b
child 1513 ba912ef24b27
     1.1 --- a/rt/vm/src/main/java/org/apidesign/vm4brwsr/ByteCodeParser.java	Mon Feb 17 17:33:22 2014 +0100
     1.2 +++ b/rt/vm/src/main/java/org/apidesign/vm4brwsr/ByteCodeParser.java	Tue Feb 18 10:02:46 2014 +0100
     1.3 @@ -1261,7 +1261,7 @@
     1.4          int name_index;
     1.5          int descriptor_index;
     1.6          int attributes_count;
     1.7 -        int value_cpx = 0;
     1.8 +        int value_cpx = -1;
     1.9          boolean isSynthetic = false;
    1.10          boolean isDeprecated = false;
    1.11          Vector attrs;
    1.12 @@ -1382,11 +1382,8 @@
    1.13              return isDeprecated;
    1.14          }
    1.15  
    1.16 -        /**
    1.17 -         * Returns index of constant value in cpool.
    1.18 -         */
    1.19 -        public int getConstantValueIndex() {
    1.20 -            return (value_cpx);
    1.21 +        public boolean hasConstantValue() {
    1.22 +            return value_cpx != -1;
    1.23          }
    1.24  
    1.25          /**