You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix JavaDoc snippet validator and the snippets it surfaced
The headless snippet validator stopped catching real issues after a
chain of refactors: PlaygroundProjectExporter pulled in net.sf.zipme.*
breaking the harness build, the resolveDisplayBinding wrappers were
reverted out of PlaygroundRunner.bindGlobals so it tripped on
ExceptionInInitializerError, and CN1's Base64 grew a Simd dep that
forced Display.impl to be live before any encoding could happen.
Repairs:
- Add ZipSupport cn1lib to the harness classpath
- Restore resolveDisplay/UiManagerBinding in PlaygroundRunner
- Encode URIs via java.util.Base64 instead of reflecting into CN1's
- Best-effort Display.init from the locally-built JavaSE jar so
"Undefined argument: icon" surfaces instead of an NPE
- Tighten the harness so undefined-identifier eval errors fail,
while genuine headless-runtime failures still pass
Then fix the snippets the now-working validator flags:
- SpanLabel/SpanButton/MultiButton/CheckBox/RadioButton/ButtonGroup/
Label/ImageViewer: add the missing Form/Image setup and hi.show()
- Preferences (and io/package-info copy): declare String myToken
- MathUtil.compare(float|double): turn the bare compareTo line into
a runnable Form demo
- Component.getAllStyles / Graphics.fillArc: rewrite the broken
"new Painter(cmp) { switch (style) ... }" pseudo-code (Painter is
an interface; style/cmp were undefined) as a runnable Painter demo
- Validator: wrap the Constraint sample in a runnable Form
- system/package-info: relabel the Objective-C example block from
java to objc
- Add the four genuinely-illustrative GroupLayout/LayoutStyle method-
signature snippets to the exclusions list with documented reasons
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
/// SpanButton sb = new SpanButton("SpanButton is a composite component (lead component) that looks/acts like a Button but can break lines rather than crop them when the text is very long.");
0 commit comments