You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the console for v4.6.2 with the example file cpg-console/src/test/resources/array.cpp I'm getting:
[25] var expr = result.all<ArraySubscriptionExpression>().map { Triple(
it.subscriptExpression.evaluate() as Int,
it.arrayExpression.dfgFrom<ArrayCreationExpression>().first().capacity,
it
) }
java.lang.ClassCastException: class java.lang.Long cannot be cast to class java.lang.Integer (java.lang.Long and java.lang.Integer are in module java.base of loader 'bootstrap')
at Line_26.<init>(Line_26.kts:2)
Thinking it might be a type change not reflected in the tutorial yet, I've tried changing the type to Long:
[26] var expr = result.all<ArraySubscriptionExpression>().map { Triple(
it.subscriptExpression.evaluate() as Long,
it.arrayExpression.dfgFrom<ArrayCreationExpression>().first().capacity,
it
) }
java.lang.ClassCastException: class java.lang.Integer cannot be cast to class java.lang.Long (java.lang.Integer and java.lang.Long are in module java.base of loader 'bootstrap')
at Line_27.<init>(Line_27.kts:2)
... producing the opposite exception.
Unexpected behavior
Not applicable
Code of interest
Part of this repo
Extensions to the library, e.g. added or changed LanguageFrontends or Passes
Used default console configuration
Changes to the configuration
None
The text was updated successfully, but these errors were encountered:
We also need to re-work the tutorial to incorporate changes of #900
oxisto
changed the title
Running into exceptions when trying console tutorial
Bring tutorial up-to-date with new query extensions and changes to query API
Sep 8, 2022
Stack trace
When using the console for
v4.6.2
with the example filecpg-console/src/test/resources/array.cpp
I'm getting:Thinking it might be a type change not reflected in the tutorial yet, I've tried changing the type to
Long
:... producing the opposite exception.
Unexpected behavior
Not applicable
Code of interest
Part of this repo
Extensions to the library, e.g. added or changed LanguageFrontends or Passes
Used default console configuration
Changes to the configuration
None
The text was updated successfully, but these errors were encountered: