mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
test example for ODASA-6859
This commit is contained in:
@@ -260,4 +260,14 @@ public class Classes {
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
/** Has a method that calls a constructor that accessing an enclosing instance of this class. */
|
||||
class CannotBeStatic4 {
|
||||
CannotBeStatic4() {
|
||||
System.out.println(foo);
|
||||
}
|
||||
void foo() {
|
||||
new CannotBeStatic4();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user