Commit 1e85c8c
Fix smoke test: stay on the EdtfTemporal interface
The previous Smoke.java called i.upper() on a variable typed as
EdtfTemporal, but upper() is declared on EdtfInterval (the
permitted subtype) — not on the sealed interface. The compiler
rejected this with 'cannot find symbol' against the published
0.2.0 jar, breaking the smoke workflow.
Replace the upper-endpoint inspection with a type() call so the
smoke source stays on the EdtfTemporal-only API surface, which is
stable across all releases since 0.2.0. The build.xml assertion
list adds a corresponding 'interval type: INTERVAL' substring
check so the smoke still verifies the interval parsed correctly.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 6dd194b commit 1e85c8c
2 files changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
0 commit comments