File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
kernel/src/main/java/com/itextpdf/kernel Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -98,11 +98,14 @@ public static Version getInstance() {
98
98
version = new Version ();
99
99
synchronized (version ) {
100
100
try {
101
- String licenseeInfoMethodName = "getLicenseeInfo " ;
101
+ String licenseeInfoMethodName = "getLicenseeInfoForVersion " ;
102
102
Class <?> klass = getLicenseKeyClass ();
103
103
if (klass != null ) {
104
- Method m = klass .getMethod (licenseeInfoMethodName );
105
- String [] info = (String []) m .invoke (klass .newInstance (), null );
104
+ Class [] cArg = {String .class };
105
+ Method m = klass .getMethod (licenseeInfoMethodName ,cArg );
106
+ String coreVersion = release ;
107
+ Object [] args = {coreVersion };
108
+ String [] info = (String []) m .invoke (klass .newInstance (), args );
106
109
if (info [3 ] != null && info [3 ].trim ().length () > 0 ) {
107
110
version .key = info [3 ];
108
111
} else {
You can’t perform that action at this time.
0 commit comments