mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
More tests for this handling in javac
This commit is contained in:
+2
-2
@@ -255,10 +255,10 @@ class QualifiedThis {
|
||||
|
||||
class ParenthesizedThis {
|
||||
final int x;
|
||||
final int y = <error descr="Variable '(this).x' might not have been initialized">(this).x</error> + 1; // javac allows this?
|
||||
final int y = <error descr="Variable '(this).x' might not have been initialized">(this).x</error> + 1;
|
||||
|
||||
ParenthesizedThis() {
|
||||
(this).x = 5;
|
||||
(this).x = 5; // javac disallows this -- probably a bug in javac
|
||||
<error descr="Variable 'x' might already have been assigned to">this.x</error> = 6;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user