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

review: fix: Refactor code to fix runtime exception caused by package name with CtType.INNERTTYPE_SEPARATOR #5237

Merged
merged 6 commits into from
Jun 11, 2023

Conversation

MartinWitt
Copy link
Collaborator

@MartinWitt MartinWitt commented May 27, 2023

The check is 17 years old and $ is allowed in packages. Interesting that we had no bug reports earlier.

The check for the CtType.INNERTTYPE_SEPARATOR that caused runtime exceptions has been removed so that valid packages with CtType.INNERTTYPE_SEPARATOR can be found.

A new test has been added to verify that a package with a name containing a dollar sign can be successfully retrieved using the PackageFactory.

Fixes #5140

…Type.INNERTTYPE_SEPARATOR.

The check for the CtType.INNERTTYPE_SEPARATOR that caused runtime exceptions has been removed so that valid packages with CtType.INNERTTYPE_SEPARATOR can be found.

A new test has been added to verify that a package with a name containing a dollar sign can be successfully retrieved using the PackageFactory.
@MartinWitt MartinWitt changed the title Refactor code to fix runtime exception caused by package name with CtType.INNERTTYPE_SEPARATOR refactor: Refactor code to fix runtime exception caused by package name with CtType.INNERTTYPE_SEPARATOR May 29, 2023
@MartinWitt MartinWitt changed the title refactor: Refactor code to fix runtime exception caused by package name with CtType.INNERTTYPE_SEPARATOR review: fix: Refactor code to fix runtime exception caused by package name with CtType.INNERTTYPE_SEPARATOR May 29, 2023
@MartinWitt MartinWitt requested a review from SirYwell May 30, 2023 20:43
@MartinWitt MartinWitt requested a review from I-Al-Istannen June 10, 2023 16:27
@I-Al-Istannen I-Al-Istannen merged commit bc333f9 into INRIA:master Jun 11, 2023
@I-Al-Istannen I-Al-Istannen deleted the back-tortoise branch June 11, 2023 18:28
@I-Al-Istannen
Copy link
Collaborator

Thanks :)

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

Successfully merging this pull request may close these issues.

[Bug]: Parsing vallid java files with package name containing $ symbol throws "Invalid package name" exception
2 participants