Loosening requirements for super() invocation
Archie Cobbs
archie.cobbs at gmail.com
Wed Jan 16 22:48:14 UTC 2019
I'm curious what are people's current thoughts on loosening the
requirements for super() invocation in the context of Amber, e.g.:
public class MyInputStream extends FilterInputStream {
public MyInputStream(InputStream in) {
if (in == null)
throw new IllegalArgumentException("null input");
super(in); // look ma!
}
}
For a brief summary of the history see the "DIGRESSION" in this post from
last year:
http://mail.openjdk.java.net/pipermail/amber-spec-experts/2018-March/000320.html
This is an old "TODO" item that was never addressed due to cost/benefit
concerns.
Is it time to revisit?
-Archie
--
Archie L. Cobbs
More information about the amber-dev
mailing list