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

class japa.parser.ast.type.ClassOrInterfaceType cannot be cast to class japa.parser.ast.type.ReferenceType #27

Open
Reeseee opened this issue Apr 23, 2022 · 0 comments

Comments

@Reeseee
Copy link

Reeseee commented Apr 23, 2022

Hi!Thanks for the work you have done!

But when I do some tests on class diagram generation module,I encountered a problem.

The source code I try to analyze is as below:
public class MyVector
extends Vector
{

}

However, there is an exception when parsing the code:

Exception in thread "main" java.lang.ClassCastException: class japa.parser.ast.type.ClassOrInterfaceType cannot be cast to class japa.parser.ast.type.ReferenceType (japa.parser.ast.type.ClassOrInterfaceType and japa.parser.ast.type.ReferenceType are in unnamed module of loader 'app')
at com.uml.parser.main.UMLHelper.getArrayClassName(UMLHelper.java:65)
at com.uml.parser.main.Counselor.createRelationship(Counselor.java:134)
at com.uml.parser.main.Counselor.checkForRelatives(Counselor.java:72)
at com.uml.parser.main.ParseJava.createUMLClass(ParseJava.java:81)
at com.uml.parser.main.ParseJava.parseFiles(ParseJava.java:53)
at RunUMLParser.main(RunUMLParser.java:50)

Would you please inform me if you have any ideas? Thanks a lot!

@Reeseee Reeseee closed this as completed Apr 24, 2022
@Reeseee Reeseee reopened this Apr 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant