RFR: 8219904: ClassCastException when calling FlightRecorderMXBean#getRecordings()
Chihiro Ito
chiroito107 at gmail.com
Wed Oct 23 16:12:57 UTC 2019
Hi Erik,
Thank you for prompt reply.
I also checked the Javadoc. The key should be disk.
> Is "toDisk" synthesized from the method name "isToDisk" in
> RecordingInfo, or is it set somewhere else?
Yes, it appears to be composited from the isToDisk method.
For compatibility, I think you should leave the isToDisk method and add
@Deprecate, what do you think?
This problem occurs when attaching over a network or to a process. The
process is connected over the network because it cannot be attached to its
own process.
Regards,
Chihiro
2019年10月21日(月) 21:13 Erik Gahlin <erik.gahlin at oracle.com>:
> Hi,
>
> The javadoc states that the key should be "disk" (which is the same used
> by jcmd and -XX:StartFlightRecording).
>
> Is "toDisk" synthesized from the method name "isToDisk" in
> RecordingInfo, or is it set somewhere else?
>
> Do the problem only occur if you access RecordingInfo over network? I am
> asking since you added a port to the test.
>
> Erik
> > Hi
> >
> > I fixed a problem with ClassCastException. Also, I fixed the
> CompositeData
> > field name because it was incorrect.
> >
> > Could you please review it?
> >
> > JBS https://bugs.openjdk.java.net/browse/JDK-8219904
> > Webrev http://cr.openjdk.java.net/~cito/JDK-8219904/webrev.00/
> >
> > The comment on the JBS mentions UneclaredThrowableException, which is a
> > different issue.
> >
> > Regards,
> > Chihiro
>
>
More information about the hotspot-jfr-dev
mailing list