> Recent fix for [JDK-8359370](https://bugs.openjdk.org/browse/JDK-8359370) > introduced a minor bug. This code should be accepted by javac: > > class SuperClass<T> { > public SuperClass(Object o) {} > } > > class Sub<T> extends SuperClass<T> { > public Sub() { > super(new Object() { > void foo() { > getClass(); > } > }); > } > } > > > but it is currently rejected as the `getClass` invocation is considered to be > an invocation of an instance method of class `Sub`
Vicente Romero has updated the pull request incrementally with one additional commit since the last revision: removing unnecessary check ------------- Changes: - all: https://git.openjdk.org/valhalla/pull/1567/files - new: https://git.openjdk.org/valhalla/pull/1567/files/55cbe386..c34f98b1 Webrevs: - full: https://webrevs.openjdk.org/?repo=valhalla&pr=1567&range=03 - incr: https://webrevs.openjdk.org/?repo=valhalla&pr=1567&range=02-03 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/valhalla/pull/1567.diff Fetch: git fetch https://git.openjdk.org/valhalla.git pull/1567/head:pull/1567 PR: https://git.openjdk.org/valhalla/pull/1567
