<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div>
<blockquote type="cite" class="">
<div class="">
<div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">I’ve significantly progressed in the prototype as you propose to process ClassPrint (to use Maps and Lists) and I’m experimenting with minimal set of formatting features.</span></div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
Cool, let’s see where it leads. I wasn’t saying that the map-of-maps is the only way to get there, as much as it seemed a viable way to get to a cleanly factored and flexible result. So let’s see where it goes, and if it runs off the road, we’ll try something
else. </div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">
<div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""><o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">We can drop many features and it still looks OK, except for expanded vs compact lists and maps. Compact map can be represented as array, however I’m not aware of anything similar for Map. Or we can use explicit delimiter class Compact,
where everything inside is treated as compact form. Or we can avoid compact maps and use Maps and Lists for expanded form and arrays for compact lists.</span></div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div>I am not sure what you mean by “compact lists and maps”? Can you give an example so I see what you are aiming at?</div>
<br class="">
<blockquote type="cite" class="">
<div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""><o:p class=""></o:p></span></div>
<div class="">
<div style="margin: 0cm 0cm 0cm 36pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<br class="">
Who is the audience for the JSON/XML/YAML-formatted results? Is someone going to parse it with Jackson and do analysis on it? If human-readability is important, why is the javap formatting not sufficient? <o:p class=""></o:p></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">Audience for<span class="Apple-converted-space"> </span></span>JSON/XML/YAML<span lang="EN-US" class=""><span class="Apple-converted-space"> </span>are all test writers validating anything in the generated code.<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">Yes, people prefer to parse structured text in a specific format over full-text or regexp searches across unstructured log output.</span></div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div>OK, so the idea here is that we think it is easier to grovel over the result with (say) XPath to make assertions, than to traverse the CM directly? Perhaps we need to provide more navigation operators on the models to make it easier to make such assertions?
</div>
<div><br class="">
</div>
<blockquote type="cite" class="">
<div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""><o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 11pt;" class="">I would propose do it the other way:</span></div>
</div>
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">- clean and refactor ClassPrinter<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">- integrate ClassPrinter with Classfile API (also for internal debugging purposes)<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">- extend javap about options to produce JSON/XML/YAML output as thin layer delegating to ClassfileAPI<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">- extend javap about verification option as thin layer delegating to ClassfileAPI (however that is a different topic :)</span></div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div>Yes, either way I think more of javap moves into ClassFile API, which is good. Let’s see where this leads.</div>
<br class="">
<blockquote type="cite" class="">
<div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""><o:p class=""></o:p></span></div>
</div>
</div>
</blockquote>
</div>
<br class="">
</body>
</html>