Invalid jcdbName
for classes which name starts with "L" without packages
#229
Labels
bug
Something isn't working
If there is a Java class where no package is specified, and its name starts with "L", the following method makes its name invalid:
jacodb/jacodb-api/src/main/kotlin/org/jacodb/api/ext/JcCommons.kt
Lines 47 to 69 in 5068453
Example
For example, if there is a project with following classes:
then the following
main
fails withjava.lang.IllegalStateException: Could not find type Clas at org.jacodb.impl.cfg.JcInstListBuilder.asType(JcInstListBuilder.kt:66)
whengetInstList()
is called. As we can see, meaning letters from the "LClass" are removed byjcdbName()
, and it turns just into "Clas"Environment
JacoDB version: 1.4.5
The text was updated successfully, but these errors were encountered: