Closed lochana-chathura closed 1 year ago
Both @HindujaB and I were able reproduce the issue. We started off with 2201.8.1 and there it was working. Then we went down with the ballerina version.
At 5.2 I was able reproduce the issue. The details of the sql and DB in the Dependencies.toml as follows.
[[package]]
org = "ballerina"
name = "sql"
version = "1.9.0"
dependencies = [
{org = "ballerina", name = "io"},
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.object"},
{org = "ballerina", name = "time"}
]
modules = [
{org = "ballerina", packageName = "sql", moduleName = "sql"}
]
org = "ballerinax"
name = "java.jdbc"
version = "1.9.0"
dependencies = [
{org = "ballerina", name = "io"},
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.string"},
{org = "ballerina", name = "sql"},
{org = "ballerina", name = "time"}
]
modules = [
{org = "ballerinax", packageName = "java.jdbc", moduleName = "java.jdbc"}
]
However, after I reproduced it in 5.2, this is reproducible in 8.1 also. I tried deleting Dependencies.toml
and also by executing bal clean
. Now, it is reproducible in 8.1 with sql version 1.11.0
and java.jdbc version 1.11.0
.
@niveathika is looking into this further, she discovered the fix done for the original issue(#2056) is incomplete. She will send a patch reverting the original fix.
ETA for the fix will be coming Monday.
Description: $subject.
Steps to reproduce: Try executing this code.
It gives the following error:
The issue is caused by the
reason: "`"
in the first line of the main function.Affected Versions: 2201.5.2
Related Issues:
2056