File tree Expand file tree Collapse file tree 6 files changed +27
-2
lines changed
main/java/org/fisco/bcos/codegen
java/org/fisco/bcos/codegen Expand file tree Collapse file tree 6 files changed +27
-2
lines changed Original file line number Diff line number Diff line change 31
31
commonsLang3Version = ' 3.12.0'
32
32
33
33
javaSDKVersion3 = " 3.6.0"
34
- javaSDKVersion2 = " 2.9.1 "
34
+ javaSDKVersion2 = " 2.10.0-SNAPSHOT "
35
35
slf4jVersion = " 1.7.32"
36
36
}
37
37
@@ -50,7 +50,7 @@ sourceSets {
50
50
// integrationTest.mustRunAfter test
51
51
allprojects {
52
52
group = ' org.fisco-bcos.code-generator'
53
- version = ' 1.3.0 '
53
+ version = ' 1.4.0-SNAPSHOT '
54
54
apply plugin : ' maven-publish'
55
55
apply plugin : ' idea'
56
56
apply plugin : ' eclipse'
Original file line number Diff line number Diff line change @@ -1651,6 +1651,11 @@ private List<TypeSpec> buildStructTypes(List<ABIDefinition> functionDefinitions)
1651
1651
if (namedType .getType ().equals ("tuple[]" ) && internalType .endsWith ("[]" )) {
1652
1652
internalType = internalType .substring (0 , internalType .lastIndexOf ("[" ));
1653
1653
}
1654
+ if (namedType .getType ().matches ("tuple\\ [\\ d+\\ ]" )
1655
+ && internalType .endsWith ("]" )
1656
+ && internalType .matches (".*\\ [\\ d+\\ ]" )) {
1657
+ internalType = internalType .substring (0 , internalType .lastIndexOf ("[" ));
1658
+ }
1654
1659
if (internalType .contains ("." )) {
1655
1660
structName = internalType .substring (internalType .lastIndexOf ("." ) + 1 );
1656
1661
} else {
Original file line number Diff line number Diff line change @@ -416,6 +416,11 @@ private List<TypeSpec> buildStructTypes(List<ABIDefinition> functionDefinitions)
416
416
if (namedType .getType ().equals ("tuple[]" ) && internalType .endsWith ("[]" )) {
417
417
internalType = internalType .substring (0 , internalType .lastIndexOf ("[" ));
418
418
}
419
+ if (namedType .getType ().matches ("tuple\\ [\\ d+\\ ]" )
420
+ && internalType .endsWith ("]" )
421
+ && internalType .matches (".*\\ [\\ d+\\ ]" )) {
422
+ internalType = internalType .substring (0 , internalType .lastIndexOf ("[" ));
423
+ }
419
424
if (isWasm ) {
420
425
structName = internalType .substring (internalType .lastIndexOf ("." ) + 1 );
421
426
} else {
Original file line number Diff line number Diff line change @@ -72,6 +72,13 @@ public void complexABICodeGen() throws IOException {
72
72
codeGenTest (COMPLEX_ABI_FILE , COMPLEX_NAME );
73
73
}
74
74
75
+ @ Test
76
+ public void complexABICodeGen2 () throws IOException {
77
+ final String COMPLEX_ABI_FILE = "ComplexCodecTest2.abi" ;
78
+ final String COMPLEX_NAME = "ComplexCodecTest" ;
79
+ codeGenTest (COMPLEX_ABI_FILE , COMPLEX_NAME );
80
+ }
81
+
75
82
@ Test
76
83
public void tableABICodeGen () throws IOException {
77
84
final String ABI_FILE = "Table.abi" ;
Original file line number Diff line number Diff line change @@ -88,6 +88,13 @@ public void complexABICodeGen() throws IOException {
88
88
codeGenTest (COMPLEX_ABI_FILE , COMPLEX_NAME );
89
89
}
90
90
91
+ @ Test
92
+ public void complexABICodeGen2 () throws IOException {
93
+ final String COMPLEX_ABI_FILE = "ComplexCodecTest2.abi" ;
94
+ final String COMPLEX_NAME = "ComplexCodecTest" ;
95
+ codeGenTest (COMPLEX_ABI_FILE , COMPLEX_NAME );
96
+ }
97
+
91
98
@ Test
92
99
public void tableABICodeGen () throws IOException {
93
100
final String ABI_FILE = "Table.abi" ;
You can’t perform that action at this time.
0 commit comments