You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is somewhat an opposite of #3116. Here's the testcase:
public class X {
final int fin;
{
fin = 0;
}
X() {
int abc = 0; // Commenting out this line brings out the error
// fin = 5; // Swapping this line with the one below also produces the correct error.
this(fin = 10);
}
X(int x) {}
}
This may be specific to invocation between constructors. I am not sure, though. Copying @stephan-herrmann
The text was updated successfully, but these errors were encountered:
jarthana
changed the title
[23] Flow analysis fails to recognize initialization in a block
[23] Flow analysis fails to recognize initialization in an instance initializer block
Feb 21, 2025
initializer block
+ arguments to explicit constructor call are prologue
- if they are relevant don't skip prologue analysis
+ fine tune creation and usage of flow prologueInfo
Fixeseclipse-jdt#3748
…nitializer block (#3749)
+ arguments to explicit constructor call are prologue
- if they are relevant don't skip prologue analysis
+ fine tune creation and usage of flow prologueInfo
Fixes#3748
This is somewhat an opposite of #3116. Here's the testcase:
This may be specific to invocation between constructors. I am not sure, though. Copying @stephan-herrmann
The text was updated successfully, but these errors were encountered: