[
https://issues.apache.org/jira/browse/NETBEANS-1359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16657859#comment-16657859
]
Sven Reimers edited comment on NETBEANS-1359 at 10/20/18 1:42 PM:
------------------------------------------------------------------
Understood. AFAIK I read the code the toCompositeData is called only for
writing the collected ThreadInfo to the sample output stream. On the read part
I see
{code:java}
CompositeData infoData;
ThreadInfo thread;
try {
infoData = (CompositeData) in.readObject();
} catch (ClassNotFoundException ex) {
throw new RuntimeException(ex);
}
thread = ThreadInfo.from(infoData);
{code}
So it seems we are using the structure of the CompositeData as an API here,
which changed between JDK10 and JDK11 so reading a .npss written from an IDE
run with 8,9,10 and read by an IDE running on 11+ will definitely fail? Do we
rely on implementation details all the way down (looking at the IBM mechanics).
Seems there is more involved here, e.g. definition of new .npss format and some
more compatibility logic? [~jlahoda] What do you think?
was (Author: sreimers):
Understood. AFAIK I read the code the toCompositeData is called only for
writing the collected ThreadInfo to the sample output stream. On the read part
I see
{code:java}
CompositeData infoData;
ThreadInfo thread;
try {
infoData = (CompositeData) in.readObject();
} catch (ClassNotFoundException ex) {
throw new RuntimeException(ex);
}
thread = ThreadInfo.from(infoData);
{code}
So it seems the structure of the CompositeData is an API here, which changed
between JDK10 and JDK11 so reading a .npss written from an IDE run with 8,9,10
and read by an IDE running on 11+ will definitely fail? Seems there is more
involved here, e.g. definition of new .npss format and some more compatibility
logic? [~jlahoda] What do you think?
> Profiling the IDE hangs when saving snapshot
> --------------------------------------------
>
> Key: NETBEANS-1359
> URL: https://issues.apache.org/jira/browse/NETBEANS-1359
> Project: NetBeans
> Issue Type: Bug
> Components: platform - JDK Problems
> Affects Versions: 10.0
> Reporter: Glenn Holmer
> Assignee: Glenn Holmer
> Priority: Blocker
> Labels: netcat
> Attachments: stacktrace.txt
>
>
> 1) Click "Profile the IDE" icon in the Performance toolbar to start profiling
> the IDE.
> 2) Open some projects, files within them, etc. to create some activity for
> the profiler.
> 3) Click the icon again (which is now labelled "Stop IDE Profiling and Take a
> Snapshot").
> This last action should create and open a profiler snapshot, but the "Saving
> snapshot" progress bar in the status area of NetBeans never goes anywhere and
> a snapshot is not opened.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists