Skip to content

ORC-1444: Enforce JDK Bytecode version - #1536

Closed
williamhyun wants to merge 1 commit into
apache:mainfrom
williamhyun:bytecode
Closed

williamhyun wants to merge 1 commit into
apache:mainfrom
williamhyun:bytecode

Conversation

@williamhyun

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

This PR aims to enforce the JDK Bytecode version.
At this moment it is enforced to 1.8, however, we will be able to move it up later.

Why are the changes needed?

This feature helps us prevent accidental addition of a higher JDK library.

How was this patch tested?

Pass the CIs.

@williamhyun

Copy link
Copy Markdown
Member Author

@dongjoon-hyun

Comment thread java/pom.xml Outdated
<version>${maven.version}</version>
</requireMavenVersion>
<enforceBytecodeVersion>
<maxJdkVersion>1.8</maxJdkVersion>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe, after merging #1535, shall we use java.version?

Comment thread java/pom.xml Outdated
<artifactId>extra-enforcer-rules</artifactId>
<version>1.7.0</version>
</dependency>
</dependencies>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI seems to complain at this due to the ordering too~

@williamhyun

Copy link
Copy Markdown
Member Author

Thank you, I addressed the comments and have rebased!

@dongjoon-hyun dongjoon-hyun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM (Pending CIs). Thank you for updates.

@dongjoon-hyun dongjoon-hyun added this to the 1.9.0 milestone Jun 15, 2023
Comment thread java/pom.xml
<ignoredScopes>test</ignoredScopes>
<ignoredScopes>provided</ignoredScopes>
<excludes>
<exclude>org.threeten:threeten-extra</exclude>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this was reported before.

@dongjoon-hyun

Copy link
Copy Markdown
Member

Thank you!

dongjoon-hyun pushed a commit that referenced this pull request Jun 15, 2023
This PR aims to enforce the JDK Bytecode version.
At this moment it is enforced to 1.8, however, we will be able to move it up later.

This feature helps us prevent accidental addition of a higher JDK library.

Pass the CIs.

Closes #1536 from williamhyun/bytecode.

Authored-by: William Hyun <william@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 2357c17)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
@dongjoon-hyun

Copy link
Copy Markdown
Member

Merged to main/1.9.

cxzl25 pushed a commit to cxzl25/orc that referenced this pull request Jan 11, 2024
### What changes were proposed in this pull request?
This PR aims to enforce the JDK Bytecode version.
At this moment it is enforced to 1.8, however, we will be able to move it up later.

### Why are the changes needed?
This feature helps us prevent accidental addition of a higher JDK library.

### How was this patch tested?
Pass the CIs.

Closes apache#1536 from williamhyun/bytecode.

Authored-by: William Hyun <william@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
dongjoon-hyun added a commit that referenced this pull request May 23, 2025
…n` rule

### What changes were proposed in this pull request?

This PR aims to remove `threeten-extra` exclusion in `enforceBytecodeVersion` rule.

### Why are the changes needed?

The previous exclusion rule was added at ORC 1.9.0 with Java 1.8. It's not required for Java 17 since ORC 2.0.
- #1536

### How was this patch tested?

Pass the CIs.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #2234 from dongjoon-hyun/ORC-1901.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
dongjoon-hyun added a commit that referenced this pull request May 23, 2025
…n` rule

### What changes were proposed in this pull request?

This PR aims to remove `threeten-extra` exclusion in `enforceBytecodeVersion` rule.

### Why are the changes needed?

The previous exclusion rule was added at ORC 1.9.0 with Java 1.8. It's not required for Java 17 since ORC 2.0.
- #1536

### How was this patch tested?

Pass the CIs.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #2234 from dongjoon-hyun/ORC-1901.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 1d33d2a)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
dongjoon-hyun added a commit that referenced this pull request May 23, 2025
…n` rule

### What changes were proposed in this pull request?

This PR aims to remove `threeten-extra` exclusion in `enforceBytecodeVersion` rule.

### Why are the changes needed?

The previous exclusion rule was added at ORC 1.9.0 with Java 1.8. It's not required for Java 17 since ORC 2.0.
- #1536

### How was this patch tested?

Pass the CIs.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #2234 from dongjoon-hyun/ORC-1901.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 1d33d2a)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants