Commit aae6cbf
feat: add a JPMS module descriptor (io.github.dfa1.zstd)
- module-info.java exports the single public package. Lets modular
consumers `requires io.github.dfa1.zstd` and scope native access with
`--enable-native-access=io.github.dfa1.zstd` instead of ALL-UNNAMED.
- Suppress the module-name lint: the `dfa1` component ends in a digit
(flagged as possibly version-like), but it mirrors the verified
io.github.dfa1 namespace and the package, so keep it.
- NativeLibrary now loads the bundled library through the class loader
(no leading slash) rather than Class#getResourceAsStream: the library
lives in a separate zstd-native-<classifier> module and a named module
only finds resources in itself. The classifier directory has a dash, so
it is not a package and the resource is not module-encapsulated — the
class loader reads it across modules and on the classpath alike.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 657e5c1 commit aae6cbf
2 files changed
Lines changed: 20 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
46 | 51 | | |
47 | | - | |
| 52 | + | |
48 | 53 | | |
49 | 54 | | |
50 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments