-
-
Notifications
You must be signed in to change notification settings - Fork 357
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: Object[]::new references resolution #1945
Conversation
The proposed solution is far from being perfect but it's a first step. I propose that before improving it further we define first a better test contract. |
|
||
@Test | ||
public void testPbWithStream() { | ||
// contract: array constructor references are well represented |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add assert on type of element (instanceof InvisibleArrayConstructorImpl)?
add assert on toString of element?
* String[]::new | ||
* </pre> | ||
*/ | ||
public class InvisibleArrayConstructor<T> extends CtConstructorImpl<T> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By convention, should end by Impl: InvisibleArrayConstructorImpl
, and should be in spoon.support.reflect.declaration
(all implementation classes are in spoon.support)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is in spoon.support. I will rename it.
Thanks @surli. LGTM, see comments. |
API changes: 1 (Detected by Revapi) Old API: fr.inria.gforge.spoon:spoon-core:jar:6.3.0-20180613.225605-139 / New API: fr.inria.gforge.spoon:spoon-core:jar:6.3.0-SNAPSHOT
|
For me it's ready again. |
Thanks Simon! |
fix #1883