hg: valhalla/valhalla: 8222784: [lworld] Remove stale compiler options: -XDallowGenericsOverValues and -XDdisallowValueConstructors
Srikanth
srikanth.adayapalam at oracle.com
Sat Apr 20 12:54:26 UTC 2019
On 20/04/19 3:53 PM, Remi Forax wrote:
> - .class notation is not supported
> public class DotClass {
> final int value;
>
> public DotClass(int value) {
> this.value = value;
> }
>
> private static <T> T foo(Class<T> type) {
> return null;
> }
>
> public static void main(String[] args) {
> foo(DotClass?.class);
> }
> }
For .class notation, see https://bugs.openjdk.java.net/browse/JDK-8221323
where there is an express request not to support these:
"Moving forward it looks like we want to say "Foo.class" for class
constant (ldc Class) in source code. If you want the boxed/value class
mirror, you need to use Class.asBoxType()/asValueType() methods."
Any difference of opinion ??
Srikanth
More information about the valhalla-dev
mailing list