RFR: 8204630: generating an anonymous class with Filer#createClassFile causes an NPE in JavacProcessingEnvironment
Jonathan Gibbons
jonathan.gibbons at oracle.com
Thu Jul 5 17:45:25 UTC 2018
It's a crash. Once it is approved, you can push to the jdk/jdk11 repo.
-- Jon
On 7/5/18 10:03 AM, Liam Miller-Cushon wrote:
> Ping. Should I defer this to 12?
>
> On Thu, Jun 28, 2018 at 5:19 PM Liam Miller-Cushon <cushon at google.com
> <mailto:cushon at google.com>> wrote:
>
> Hi,
>
> Is there any more feedback on this?
>
> The bug is currently targeted for JDK 11, but I can defer it if
> there are any concerns.
>
> Thanks,
> Liam
>
> On Tue, Jun 12, 2018 at 7:50 PM Liam Miller-Cushon
> <cushon at google.com <mailto:cushon at google.com>> wrote:
>
> Hi Jan,
>
> Thanks for the review, and the explanation!
>
> On Tue, Jun 12, 2018 at 7:13 AM Jan Lahoda
> <jan.lahoda at oracle.com <mailto:jan.lahoda at oracle.com>> wrote:
>
> So the change in JavacProcessingEnvironment could be, I
> think, rewritten as:
> if (cs.owner.kind == PCK) {
> cs.owner.members().enterIfAbsent(cs);
> }
>
>
> Done.
>
> The change in ClassReader seems unnecessary, or am I mistaken?
>
>
> Nope, I think you're right.
>
> Updated webrev:
> http://cr.openjdk.java.net/~cushon/8204630/webrev.01/
> <http://cr.openjdk.java.net/%7Ecushon/8204630/webrev.01/>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20180705/948ee7c6/attachment.html>
More information about the compiler-dev
mailing list