@@ -29,19 +29,19 @@ public class CFVersion {
2929/**
3030 * Default versions of class file
3131 */
32- public static final short DEFAULT_MAJOR_VERSION =45 ;
33- public static final short DEFAULT_MINOR_VERSION =3 ;
34- public static final short DEFAULT_MODULE_MAJOR_VERSION =53 ;
35- public static final short DEFAULT_MODULE_MINOR_VERSION =0 ;
36- public static final short UNDEFINED_VERSION = -1 ;
32+ public static final int DEFAULT_MAJOR_VERSION =45 ;
33+ public static final int DEFAULT_MINOR_VERSION =3 ;
34+ public static final int DEFAULT_MODULE_MAJOR_VERSION =53 ;
35+ public static final int DEFAULT_MODULE_MINOR_VERSION =0 ;
36+ public static final int UNDEFINED_VERSION = -1 ;
3737/* The version of a class file since which the compact format of stack map is necessary */
3838public static final int SPLIT_VERIFIER_CFV =50 ;
3939
40- private short major_version ;
41- private short minor_version ;
40+ private int major_version ;
41+ private int minor_version ;
4242
43- private short threshold_major_version ;
44- private short threshold_minor_version ;
43+ private int threshold_major_version ;
44+ private int threshold_minor_version ;
4545
4646private boolean frozen ;
4747
@@ -57,7 +57,7 @@ public CFVersion() {
5757threshold_minor_version =UNDEFINED_VERSION ;
5858 }
5959
60- public CFVersion (short major_version ,short minor_version ) {
60+ public CFVersion (int major_version ,int minor_version ) {
6161frozen =false ;
6262this .major_version =major_version ;
6363this .minor_version =minor_version ;
@@ -68,19 +68,19 @@ public CFVersion setFrozen(boolean frozen) {
6868return this ;
6969 }
7070
71- public CFVersion setThreshold (short major_version ,short minor_version ) {
71+ public CFVersion setThreshold (int major_version ,int minor_version ) {
7272this .threshold_major_version =major_version ;
7373this .threshold_minor_version =minor_version ;
7474return this ;
7575 }
7676
77- public CFVersion setVersion (short major_version ,short minor_version ) {
77+ public CFVersion setVersion (int major_version ,int minor_version ) {
7878this .major_version =major_version ;
7979this .minor_version =minor_version ;
8080return this ;
8181 }
8282
83- public CFVersion setFileVersion (short major_version ,short minor_version ) {
83+ public CFVersion setFileVersion (int major_version ,int minor_version ) {
8484if (isSet () &&isFrozen ()) {
8585if (isThresholdSet ()) {
8686if ((major_version <threshold_major_version ) ||
@@ -97,13 +97,13 @@ public CFVersion setFileVersion(short major_version, short minor_version) {
9797 }
9898
9999
100- public CFVersion setMajorVersion (short major_version ) {
100+ public CFVersion setMajorVersion (int major_version ) {
101101if (!frozen )
102102this .major_version =major_version ;
103103return this ;
104104 }
105105
106- public CFVersion setMinorVersion (short minor_version ) {
106+ public CFVersion setMinorVersion (int minor_version ) {
107107if (!frozen )this .minor_version =minor_version ;
108108return this ;
109109 }
@@ -172,11 +172,11 @@ public static CFVersion copyOf(CFVersion cfv) {
172172return cfVersion ;
173173 }
174174
175- public short minor_version () {
176- return this .minor_version ;
175+ public int minor_version () {
176+ return this .minor_version ;
177177 }
178178
179- public short major_version () {
179+ public int major_version () {
180180return this .major_version ;
181181 }
182182}