Skip to content

Java: merge the @class and @interface database types and tables#12111

Merged
smowton merged 6 commits into
github:mainfrom
smowton:smowton/feature/java-merge-classes-and-interfaces
Feb 15, 2023
Merged

Java: merge the @class and @interface database types and tables#12111
smowton merged 6 commits into
github:mainfrom
smowton:smowton/feature/java-merge-classes-and-interfaces

Conversation

@smowton
Copy link
Copy Markdown
Contributor

@smowton smowton commented Feb 6, 2023

This will allow the extractor to emit class(id, ...) when all it knows about a class is its name, due to not having it available on the classpath. Previously it would have had to guess whether it belonged to @class or @interface, possibly introducing an inconsistency.

@smowton smowton requested review from a team as code owners February 6, 2023 21:23
@smowton smowton force-pushed the smowton/feature/java-merge-classes-and-interfaces branch 7 times, most recently from d8bc174 to dade459 Compare February 12, 2023 09:25
This will allow the extractor to emit class(id, ...) when all it knows about a class is its name, due to not having it available on the classpath. Previously it would have had to guess whether it belonged to @Class or @interface, possibly introducing an inconsistency.
Also fix a simple redundancy noticed while debugging
@smowton smowton force-pushed the smowton/feature/java-merge-classes-and-interfaces branch from dade459 to 62d10f9 Compare February 14, 2023 17:21
) {
exists(RefType commonSourceDecl |
unificationTargets(pt1, pt2) and
pragma[only_bind_out](pt1).getSourceDeclaration() = pragma[only_bind_out](commonSourceDecl) and
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pragma on the RHS looks superfluous to me.

Copy link
Copy Markdown
Contributor

@aschackmull aschackmull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor comment, otherwise LGTM. I presume that the up- and downgrade scripts have been tested, because AFAIR our automated testing for those doesn't quite test as much as one could hope for.

@smowton smowton merged commit 2cd1e09 into github:main Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants