Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table testcases are failing in bstring-unit-test module #23132

Closed
mohanvive opened this issue May 6, 2020 · 1 comment
Closed

Table testcases are failing in bstring-unit-test module #23132

mohanvive opened this issue May 6, 2020 · 1 comment
Assignees
Labels
Points/2 Equivalent to two days effort Team/jBallerina All the issues related to BIR, JVM backend code generation and runtime Type/Bug

Comments

@mohanvive
Copy link
Contributor

Description:
As you are aware, we have introduced a new table implementation for the next Ballerina release. In this process, we have removed the old Table implementation and related testcases in the PR [1].

Once, the new implementation is merged with [2], we have started enabling the existing table test cases which are disabled in [1]. Even though, we were able to enable the testcases in unit-test module we have seen some issues when enabling the same testcases in bstring-unit-test module.

For example, if you consider the testcases in [3]. We are facing the below exception.

ballerina-test-suite > jballerina-test > org.ballerinalang.test.types.anydata.AnydataTest > testAnydataToUnion2 FAILED
    org.ballerinalang.util.exceptions.BLangRuntimeException: Error while invoking function 'testAnydataToUnion2'
        at org.ballerinalang.test.util.BRunUtil.invoke(BRunUtil.java:409)
        at org.ballerinalang.test.util.BRunUtil.invokeFunction(BRunUtil.java:1390)
        at org.ballerinalang.test.util.BRunUtil.invoke(BRunUtil.java:162)
        at org.ballerinalang.test.util.BRunUtil.invoke(BRunUtil.java:1439)
        at org.ballerinalang.test.types.anydata.AnydataTest.testAnydataToUnion2(AnydataTest.java:259)

        Caused by:
        java.lang.RuntimeException: Error while invoking function 'testAnydataToUnion2'

            Caused by:
            java.lang.reflect.InvocationTargetException

                Caused by:
                java.lang.ClassCastException: java.lang.String cannot be cast to org.ballerinalang.jvm.values.api.BString

[1] #22284
[2] #22874
[3] cebe4a0

@mohanvive mohanvive added Team/jBallerina All the issues related to BIR, JVM backend code generation and runtime Type/Bug labels May 6, 2020
@mohanvive mohanvive changed the title Table testcases are failing bstring-unit-test module Table testcases are failing in bstring-unit-test module May 6, 2020
@riyafa riyafa added the Points/2 Equivalent to two days effort label May 11, 2020
@riyafa
Copy link
Contributor

riyafa commented May 25, 2020

Fixed in #23444

@riyafa riyafa closed this as completed May 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Points/2 Equivalent to two days effort Team/jBallerina All the issues related to BIR, JVM backend code generation and runtime Type/Bug
Projects
None yet
Development

No branches or pull requests

2 participants