Skip to content

Commit 688639e

Browse files
authored
feat(java): classfile and jar readers (#49)
* feat(java): classfile and jar readers - feat(java): reader facade for classfiles - feat(java): support for reading jpms module classes - feat(java): support for reading jars - test(java): compile harness - test(java): jar assemble harness - test(java): full test coverage for java package - test(java); inline testsuite for class parser - chore(java): rewrite much of class parser as typescript - chore: bump packages for eventual release → `1.0.2` Not yet finished: JAR reader. Signed-off-by: Sam Gammon <sam@elide.ventures> * chore: run formatter Signed-off-by: Sam Gammon <sam@elide.ventures> * feat(java): implement manifest reader Signed-off-by: Sam Gammon <sam@elide.ventures> * feat(java): implement jar file support and tests Signed-off-by: Sam Gammon <sam@elide.ventures> * chore: sync lockfiles, general cleanup Signed-off-by: Sam Gammon <sam@elide.ventures> * fix: bad prettier run Signed-off-by: Sam Gammon <sam@elide.ventures> --------- Signed-off-by: Sam Gammon <sam@elide.ventures>
1 parent 3d13d3a commit 688639e

107 files changed

Lines changed: 7804 additions & 2293 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CODE_OF_CONDUCT.md

Lines changed: 26 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,14 @@
22

33
## Our Pledge
44

5-
In the interest of fostering an open and welcoming environment, we as
6-
contributors and maintainers pledge to making participation in our project and
7-
our community a harassment-free experience for everyone, regardless of age, body
8-
size, disability, ethnicity, sex characteristics, gender identity and expression,
9-
level of experience, education, socio-economic status, nationality, personal
10-
appearance, race, religion, or sexual identity and orientation.
5+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making
6+
participation in our project and our community a harassment-free experience for everyone, regardless of age, body size,
7+
disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education,
8+
socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
119

1210
## Our Standards
1311

14-
Examples of behavior that contributes to creating a positive environment
15-
include:
12+
Examples of behavior that contributes to creating a positive environment include:
1613

1714
- Using welcoming and inclusive language
1815
- Being respectful of differing viewpoints and experiences
@@ -22,55 +19,43 @@ include:
2219

2320
Examples of unacceptable behavior by participants include:
2421

25-
- The use of sexualized language or imagery and unwelcome sexual attention or
26-
advances
22+
- The use of sexualized language or imagery and unwelcome sexual attention or advances
2723
- Trolling, insulting/derogatory comments, and personal or political attacks
2824
- Public or private harassment
29-
- Publishing others' private information, such as a physical or electronic
30-
address, without explicit permission
31-
- Other conduct which could reasonably be considered inappropriate in a
32-
professional setting
25+
- Publishing others' private information, such as a physical or electronic address, without explicit permission
26+
- Other conduct which could reasonably be considered inappropriate in a professional setting
3327

3428
## Our Responsibilities
3529

36-
Project maintainers are responsible for clarifying the standards of acceptable
37-
behavior and are expected to take appropriate and fair corrective action in
38-
response to any instances of unacceptable behavior.
30+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take
31+
appropriate and fair corrective action in response to any instances of unacceptable behavior.
3932

40-
Project maintainers have the right and responsibility to remove, edit, or
41-
reject comments, commits, code, wiki edits, issues, and other contributions
42-
that are not aligned to this Code of Conduct, or to ban temporarily or
43-
permanently any contributor for other behaviors that they deem inappropriate,
44-
threatening, offensive, or harmful.
33+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits,
34+
issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any
35+
contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
4536

4637
## Scope
4738

48-
This Code of Conduct applies within all project spaces, and it also applies when
49-
an individual is representing the project or its community in public spaces.
50-
Examples of representing a project or community include using an official
51-
project e-mail address, posting via an official social media account, or acting
52-
as an appointed representative at an online or offline event. Representation of
53-
a project may be further defined and clarified by project maintainers.
39+
This Code of Conduct applies within all project spaces, and it also applies when an individual is representing the
40+
project or its community in public spaces. Examples of representing a project or community include using an official
41+
project e-mail address, posting via an official social media account, or acting as an appointed representative at an
42+
online or offline event. Representation of a project may be further defined and clarified by project maintainers.
5443

5544
## Enforcement
5645

57-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58-
reported by contacting the project team at apps at elide dot cloud. All
59-
complaints will be reviewed and investigated and will result in a response that
60-
is deemed necessary and appropriate to the circumstances. The project team is
61-
obligated to maintain confidentiality with regard to the reporter of an incident.
62-
Further details of specific enforcement policies may be posted separately.
46+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at
47+
apps at elide dot cloud. All complaints will be reviewed and investigated and will result in a response that is deemed
48+
necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to
49+
the reporter of an incident. Further details of specific enforcement policies may be posted separately.
6350

64-
Project maintainers who do not follow or enforce the Code of Conduct in good
65-
faith may face temporary or permanent repercussions as determined by other
66-
members of the project's leadership.
51+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent
52+
repercussions as determined by other members of the project's leadership.
6753

6854
## Attribution
6955

70-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71-
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
56+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at
57+
https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
7258

7359
[homepage]: https://www.contributor-covenant.org
7460

75-
For answers to common questions about this code of conduct, see
76-
https://www.contributor-covenant.org/faq
61+
For answers to common questions about this code of conduct, see https://www.contributor-covenant.org/faq

.github/GOVERNANCE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
company, which is known formally as _Elide Technologies, Inc._, a registered Delaware Limited Liability Company. Elide
55
is also supported by contributions from independent engineers all over the world.
66

7-
Elide is a community project, and we welcome new contributors. We are committed to fostering a welcoming environment.
8-
We expect contributors to follow the [Contributor Covenant Code of Conduct][2] when discussing the project in any forum.
7+
Elide is a community project, and we welcome new contributors. We are committed to fostering a welcoming environment. We
8+
expect contributors to follow the [Contributor Covenant Code of Conduct][2] when discussing the project in any forum.
99

1010
## Project Leadership
1111

.github/SECURITY.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ Security issues are addressed promptly, and we continuously enhance project secu
99

1010
## Supported Versions
1111

12-
The Elide project is still early, but we intend to support the latest release and immediate past release.
13-
Once the project hits a level of stability suitable for a `1.0` version we will update this document and issue an
14-
LTS release.
12+
The Elide project is still early, but we intend to support the latest release and immediate past release. Once the
13+
project hits a level of stability suitable for a `1.0` version we will update this document and issue an LTS release.
1514

1615
**Current version support matrix:**
1716

@@ -23,9 +22,9 @@ LTS release.
2322

2423
## Reporting a Vulnerability
2524

26-
**We use GitHub issues to track vulnerabilities.** [Click here][9] to report a new issue.
27-
If you need to report a vulnerability privately, please use the email address on our main GitHub organization page
28-
(`apps` at `elide` dot `cloud`).
25+
**We use GitHub issues to track vulnerabilities.** [Click here][9] to report a new issue. If you need to report a
26+
vulnerability privately, please use the email address on our main GitHub organization page (`apps` at `elide` dot
27+
`cloud`).
2928

3029
If you need to provide secure information or your report needs to be encrypted, please use our PGP key, as listed on
3130
public key servers at the same email address.
@@ -42,8 +41,8 @@ Other (older) releases may receive backports on a case-by-case basis.
4241

4342
We will publish security advisories for any vulnerabilities that we address.
4443

45-
These advisories will be published on our GitHub organization page and will be linked to from this document;
46-
the main `elide` repository will also have a link to this document.
44+
These advisories will be published on our GitHub organization page and will be linked to from this document; the main
45+
`elide` repository will also have a link to this document.
4746

4847
**At this time, no security advisories have been announced.**
4948

@@ -60,9 +59,8 @@ Elide employs Gradle for dependency assurance, with `SHA-256` and `PGP` used for
6059

6160
### Attestations and Signing
6261

63-
Elide ships with [SLSA attestations][3] for all modules, and embeds an SBOM with each binary artifact.
64-
Library releases are signed with PGP and published to Maven Central; all releases are additionally registered with
65-
[Sigstore][4].
62+
Elide ships with [SLSA attestations][3] for all modules, and embeds an SBOM with each binary artifact. Library releases
63+
are signed with PGP and published to Maven Central; all releases are additionally registered with [Sigstore][4].
6664

6765
Container image bases carry SLSA attestations and are registered with Sigstore.
6866

.github/codecov.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
codecov:
22
require_ci_to_pass: true
3-
bot: "elidebot"
3+
bot: 'elidebot'
44
notify:
55
wait_for_ci: true
66

77
coverage:
88
precision: 2
99
round: down
10-
range: "25...40"
10+
range: '25...40'
1111
status:
1212
project:
1313
default:
1414
informational: true
1515
patch: off
1616

1717
comment:
18-
layout: "reach,diff,flags,files,footer"
18+
layout: 'reach,diff,flags,files,footer'
1919
behavior: default
2020
require_changes: false
2121

@@ -33,13 +33,13 @@ github_checks:
3333
annotations: true
3434

3535
ignore:
36-
- "jdk"
37-
- "samples"
38-
- "tools/processor"
39-
- "tools/substrate/injekt"
40-
- "tools/substrate/sekret"
41-
- "tools/substrate/interakt"
42-
- "tools/substrate/compiler-util"
43-
- "tools/plugin/gradle-plugin"
44-
- "packages/proto/proto-flatbuffers"
45-
- "packages/graalvm/src/main/kotlin/elide/runtime/feature"
36+
- 'jdk'
37+
- 'samples'
38+
- 'tools/processor'
39+
- 'tools/substrate/injekt'
40+
- 'tools/substrate/sekret'
41+
- 'tools/substrate/interakt'
42+
- 'tools/substrate/compiler-util'
43+
- 'tools/plugin/gradle-plugin'
44+
- 'packages/proto/proto-flatbuffers'
45+
- 'packages/graalvm/src/main/kotlin/elide/runtime/feature'

.github/dependency-review-config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313

1414
license-check: true
1515
vulnerability-check: true
16-
fail-on-severity: "high"
16+
fail-on-severity: 'high'
1717

1818
allow-ghsas:
1919
## Allow `node-fetch`, because it is unused in actual outputs made by this library.
20-
- "GHSA-r683-j2x4-v87g"
21-
- "GHSA-w7rc-rwvf-8q5r"
20+
- 'GHSA-r683-j2x4-v87g'
21+
- 'GHSA-w7rc-rwvf-8q5r'
2222

2323
## Allow `jszip`, because we do not use it in the browser.
24-
- "GHSA-jg8v-48h5-wgxg"
24+
- 'GHSA-jg8v-48h5-wgxg'

.github/pr-badge.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
#
1313

1414
## Draft/ready for review
15-
- label: "Status"
16-
message: "Draft"
17-
color: "gray"
18-
when: "$isDraft"
19-
- label: "Status"
20-
message: "Ready for review"
21-
color: "green"
22-
when: "$isDraft === false"
15+
- label: 'Status'
16+
message: 'Draft'
17+
color: 'gray'
18+
when: '$isDraft'
19+
- label: 'Status'
20+
message: 'Ready for review'
21+
color: 'green'
22+
when: '$isDraft === false'
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
name: "Checks: Dependency Review"
1+
name: 'Checks: Dependency Review'
22

3-
"on":
3+
'on':
44
workflow_call: {}
55
workflow_dispatch: {}
66

@@ -9,16 +9,16 @@ permissions:
99

1010
jobs:
1111
dependency-review:
12-
name: "Dependency Review"
12+
name: 'Dependency Review'
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Harden Runner
1616
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
1717
with:
1818
egress-policy: audit
19-
- name: "Setup: Checkout"
19+
- name: 'Setup: Checkout'
2020
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
2121
with:
2222
persist-credentials: false
23-
- name: "Checks: Dependency Review"
23+
- name: 'Checks: Dependency Review'
2424
uses: actions/dependency-review-action@9129d7d40b8c12c1ed0f60400d00c92d437adcce # v4.1.3
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
name: "Checks: Gradle Wrapper"
1+
name: 'Checks: Gradle Wrapper'
22

3-
"on":
3+
'on':
44
workflow_call: {}
55
workflow_dispatch: {}
66

@@ -9,16 +9,16 @@ permissions:
99

1010
jobs:
1111
validation:
12-
name: "Check: Gradle Wrappers"
12+
name: 'Check: Gradle Wrappers'
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Harden Runner
1616
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
1717
with:
1818
egress-policy: audit
19-
- name: "Setup: Checkout"
19+
- name: 'Setup: Checkout'
2020
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
2121
with:
2222
persist-credentials: false
23-
- name: "Check: Gradle Wrappers"
23+
- name: 'Check: Gradle Wrappers'
2424
uses: gradle/wrapper-validation-action@699bb18358f12c5b78b37bb0111d3a0e2276e0e2 # v2.1.1

.github/workflows/check.hashes.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
name: "Checks: Hashes"
1+
name: 'Checks: Hashes'
22

3-
"on":
3+
'on':
44
workflow_call: {}
55
workflow_dispatch: {}
66

@@ -9,16 +9,16 @@ permissions:
99

1010
jobs:
1111
validation:
12-
name: "Check: Hashes"
12+
name: 'Check: Hashes'
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Harden Runner
1616
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
1717
with:
1818
egress-policy: audit
19-
- name: "Setup: Checkout"
19+
- name: 'Setup: Checkout'
2020
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
2121
with:
2222
persist-credentials: false
23-
- name: "Check: Hashes"
23+
- name: 'Check: Hashes'
2424
uses: sgammon/verify-hashes@cac7d57e01915a3fc9bda26373fb85d3f71dea68 # v1.0.0-rc1

0 commit comments

Comments
 (0)