From 0106746e60263d8cc3fbd189cca7b2e09c3d5c06 Mon Sep 17 00:00:00 2001 From: Rawi01 Date: Wed, 17 Feb 2021 09:41:08 +0100 Subject: [fixes #2752] Save problem handler state for postponed error handling --- .../before/ExtensionMethodNonStaticAccess.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/transform/resource/before/ExtensionMethodNonStaticAccess.java (limited to 'test/transform/resource/before') diff --git a/test/transform/resource/before/ExtensionMethodNonStaticAccess.java b/test/transform/resource/before/ExtensionMethodNonStaticAccess.java new file mode 100644 index 00000000..0d317c35 --- /dev/null +++ b/test/transform/resource/before/ExtensionMethodNonStaticAccess.java @@ -0,0 +1,18 @@ +//issue #2752: this test triggers an indirect static access and a non static access warning for the same method call +//platform ecj,eclipse +class ExtensionMethodNonStaticAccess { + public void method(){ + Derived derived = new Derived(); + derived.staticMethod(); + } +} + +class Base { + static String staticMethod() { + return ""; + } +} + +class Derived extends Base { + +} \ No newline at end of file -- cgit