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

Pointing to a method invocation of a removed class #63

Open
lmove opened this issue Apr 28, 2022 · 2 comments
Open

Pointing to a method invocation of a removed class #63

lmove opened this issue Apr 28, 2022 · 2 comments

Comments

@lmove
Copy link
Collaborator

lmove commented Apr 28, 2022

This issue seems to be a TP. Nevertheless, it is weird that we are reporting a SUPERCLASS_REMOVED breaking change in all cases. The real cause behind this situation is a CLASS_REMOVED breaking change. Let's investigate a bit more. In any case, there is indeed an issue as reported by the broken uses, the problem is that nor JDT nor the Maven compilers report the error.

ID: 9e20076a-8060-4f8d-be55-d82107962822
Path: code/maracas/test-data/api-evolution-data-corpus/client/src/genericsWildcardsClazzConstructorParamLowerBoundsSpecialization/Main.java
Line: 12
Breaking change: SUPERCLASS_REMOVED
API use: METHOD_INVOCATION
Used declaration: toString()
Source declaration: testing_lib.accessModifierClazzFieldAccessIncreaseNonToProtected.AccessModifierClazzFieldAccessIncreaseNonToProtected

ID: 3e44b004-c8df-4bd8-bd45-7a18681b9247
Path: code/maracas/test-data/api-evolution-data-corpus/client/src/otherIfazeDelete/Main.java
Line: 9
Breaking change: SUPERCLASS_REMOVED
API use: METHOD_INVOCATION
Used declaration: toString()
Source declaration: testing_lib.accessModifierClazzFieldAccessIncreaseNonToProtected.AccessModifierClazzFieldAccessIncreaseNonToProtected

ID: 708c05db-d9cd-46dc-9764-44645ccb743f
Path: code/maracas/test-data/api-evolution-data-corpus/client/src/membersIfazeNestedIfazeDelete/Main.java
Line: 9
Breaking change: SUPERCLASS_REMOVED
API use: METHOD_INVOCATION
Used declaration: toString()
Source declaration: testing_lib.accessModifierClazzFieldAccessIncreaseNonToProtected.AccessModifierClazzFieldAccessIncreaseNonToProtected

ID: 1c33afcb-e67c-4c18-b177-40c1d536bf17
Path: code/maracas/test-data/api-evolution-data-corpus/client/src/otherClazzDelete/Main.java
Line: 9
Breaking change: SUPERCLASS_REMOVED
API use: METHOD_INVOCATION
Used declaration: toString()
Source declaration: testing_lib.accessModifierClazzFieldAccessIncreaseNonToProtected.AccessModifierClazzFieldAccessIncreaseNonToProtected

ID: 9c3f83e2-9b84-4305-ac33-9b537a6e99d3
Path: [/home/lina/Documents/code/maracas/test-data/api-evolution-data-corpus/client/src/modifierClazzNonFinalToFinal/Main.java](file:///home/lina/Documents/code/maracas/test-data/api-evolution-data-corpus/client/src/modifierClazzNonFinalToFinal/Main.java)
Line: 9
Breaking change: SUPERCLASS_REMOVED
API use: METHOD_INVOCATION
Used declaration: toString()
Source declaration: testing_lib.accessModifierClazzFieldAccessIncreaseNonToProtected.AccessModifierClazzFieldAccessIncreaseNonToProtected

ID: d0d5b36d-c9b0-4cc4-96bc-5c1c99b55869
Path: /code/maracas/test-data/api-evolution-data-corpus/client/src/inheritanceClazzContractSuperClassSet/Main.java
Line: 10
Breaking change: SUPERCLASS_REMOVED
API use: METHOD_INVOCATION
Used declaration: printClazz2()
Source declaration: testing_lib.inheritanceClazzContractSuperClassSet.InheritanceClazzContractSuperInterfaceSet
@lmove
Copy link
Collaborator Author

lmove commented Apr 28, 2022

Here we have the additional cases:

ID: a086a059-0d96-471f-b8bf-47f316ce7b49
Path: code/maracas/test-data/api-evolution-data-corpus/client/src/inheritanceClazzContractSuperClassSet/Main.java
Line: 10
Breaking change: CLASS_REMOVED
API use: TYPE_DEPENDENCY
Used declaration: testing_lib.inheritanceClazzContractSuperClassSet.Clazz2
Source declaration: testing_lib.inheritanceClazzContractSuperClassSet.Clazz2

ID: 8027c926-031d-4d7a-94cb-8f3cf33dbb95
Path: code/maracas/test-data/api-evolution-data-corpus/client/src/inheritanceIfazeContractSuperinterfaceSet/Main.java
Line: 11
Breaking change: CLASS_REMOVED
API use: TYPE_DEPENDENCY
Used declaration: testing_lib.inheritanceIfazeContractSuperinterfaceSet.Interface2
Source declaration: testing_lib.inheritanceIfazeContractSuperinterfaceSet.Interface2

ID: 39e35808-e6d4-4758-8a1e-ab3ab4f8a61e
Path: code/maracas/test-data/api-evolution-data-corpus/client/src/inheritanceClazzStopInherite/Main.java
Line: 10
Breaking change: SUPERCLASS_REMOVED
API use: METHOD_INVOCATION
Used declaration: methodClazz1()
Source declaration: testing_lib.inheritanceClazzStopInherite.InheritanceClazzStopInherite

ID: 0d12dca7-37a1-4e8b-837e-fb32de5a3745
Path: [/home/lina/Documents/code/maracas/test-data/api-evolution-data-corpus/client/src/otherClazzDelete/Main.java](file:///home/lina/Documents/code/maracas/test-data/api-evolution-data-corpus/client/src/otherClazzDelete/Main.java)
Line: 9
Breaking change: CLASS_REMOVED
API use: TYPE_DEPENDENCY
Used declaration: testing_lib.otherClazzDelete.OtherClazzDelete
Source declaration: testing_lib.otherClazzDelete.OtherClazzDelete

ID: 18bb9954-5a0e-4856-b3ec-b6453b5d1cb7
Path: /code/maracas/test-data/api-evolution-data-corpus/client/src/membersClazzNestedClazzDelete/Main.java
Line: 11
Breaking change: CLASS_REMOVED
API use: TYPE_DEPENDENCY
Used declaration: testing_lib.membersClazzNestedClazzDelete.MembersClazzNestedClazzDelete.NestedClazz
Source declaration: testing_lib.membersClazzNestedClazzDelete.MembersClazzNestedClazzDelete.NestedClazz

@lmove lmove changed the title Wrongly reporting a SUPERCLASS_REMOVED breaking change Pointing to a method invocation of a removed class Apr 28, 2022
@lmove
Copy link
Collaborator Author

lmove commented May 4, 2022

Some of the SUPERCLASS_REMOVED cases are actually related to #65.

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