Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.11.1 #468

Merged
merged 7 commits into from
Mar 6, 2025
Merged

Release 1.11.1 #468

merged 7 commits into from
Mar 6, 2025

Conversation

jaskarth
Copy link
Member

@jaskarth jaskarth commented Mar 5, 2025

Release version 1.11.1

jaskarth and others added 7 commits February 26, 2025 12:41
Requesting the record components from a struct class has a fallback to
an empty list over null for objects that extend j.l.Record but do not
have a record attribute.

This fallback however assumes that the type has a superclass, which is
not the case of j.l.Object, causing a NPE.
Vineflower's previous implementation of the type casting pattern
matching in switch statements was not strict enough, considering any
form of cast in the first expression of the case block a result of type
pattern matching.

This would incorrectly attempt to emit such type pattern matching source
code for switches that simply yielded different types.

This commit tightens the logic to consider a switch case a type pattern
matching one if the first expression is a simple cast of the switch
head's variable.
@jaskarth jaskarth added Priority: High High priority Type: Version Update A pull request that merges a new version into main labels Mar 5, 2025
Copy link

github-actions bot commented Mar 5, 2025

Test Results

   18 files  ±0     18 suites  ±0   1m 4s ⏱️ +2s
1 939 tests +2  1 939 ✅ +2  0 💤 ±0  0 ❌ ±0 
2 574 runs  +4  2 574 ✅ +4  0 💤 ±0  0 ❌ ±0 

Results for commit a1967e8. ± Comparison against base commit 971c157.

This pull request removes 767 and adds 769 tests. Note that renamed tests count towards both.
org.jetbrains.java.decompiler.collections.FastSparseSetTest ‑ [1] [0], org.jetbrains.java.decompiler.util.collections.FastSparseSetFactory@1179fc8c, org.jetbrains.java.decompiler.collections.FastSparseSetTest$$Lambda$931/0x00007fddd82881f8@a03529c
org.jetbrains.java.decompiler.collections.FastSparseSetTest ‑ [1] [0], org.jetbrains.java.decompiler.util.collections.FastSparseSetFactory@126a9a3d, org.jetbrains.java.decompiler.collections.FastSparseSetTest$$Lambda$931/0x00007fddd82881f8@a03529c
org.jetbrains.java.decompiler.collections.FastSparseSetTest ‑ [1] [0], org.jetbrains.java.decompiler.util.collections.FastSparseSetFactory@1533338c, org.jetbrains.java.decompiler.collections.FastSparseSetTest$$Lambda$935/0x00007f583c288b10@1179fc8c
org.jetbrains.java.decompiler.collections.FastSparseSetTest ‑ [1] [0], org.jetbrains.java.decompiler.util.collections.FastSparseSetFactory@1d3a03fe, org.jetbrains.java.decompiler.collections.FastSparseSetTest$$Lambda$931/0x00007fddd82881f8@a03529c
org.jetbrains.java.decompiler.collections.FastSparseSetTest ‑ [1] [0], org.jetbrains.java.decompiler.util.collections.FastSparseSetFactory@26101efc, org.jetbrains.java.decompiler.collections.FastSparseSetTest$$Lambda$931/0x00007fddd82881f8@a03529c
org.jetbrains.java.decompiler.collections.FastSparseSetTest ‑ [1] [0], org.jetbrains.java.decompiler.util.collections.FastSparseSetFactory@269c7104, org.jetbrains.java.decompiler.collections.FastSparseSetTest$$Lambda$935/0x00007f583c288b10@1179fc8c
org.jetbrains.java.decompiler.collections.FastSparseSetTest ‑ [1] [0], org.jetbrains.java.decompiler.util.collections.FastSparseSetFactory@28b5662d, org.jetbrains.java.decompiler.collections.FastSparseSetTest$$Lambda$931/0x00007fddd82881f8@a03529c
org.jetbrains.java.decompiler.collections.FastSparseSetTest ‑ [1] [0], org.jetbrains.java.decompiler.util.collections.FastSparseSetFactory@2ffb0d10, org.jetbrains.java.decompiler.collections.FastSparseSetTest$$Lambda$935/0x00007f583c288b10@1179fc8c
org.jetbrains.java.decompiler.collections.FastSparseSetTest ‑ [1] [0], org.jetbrains.java.decompiler.util.collections.FastSparseSetFactory@336e3be2, org.jetbrains.java.decompiler.collections.FastSparseSetTest$$Lambda$935/0x00007f583c288b10@1179fc8c
org.jetbrains.java.decompiler.collections.FastSparseSetTest ‑ [1] [0], org.jetbrains.java.decompiler.util.collections.FastSparseSetFactory@362a6aa5, org.jetbrains.java.decompiler.collections.FastSparseSetTest$$Lambda$931/0x00007fddd82881f8@a03529c
…
org.jetbrains.java.decompiler.SingleClassesTest ‑ TestGenericMapping
org.jetbrains.java.decompiler.SingleClassesTest ‑ TestSwitchExpressionReturnType
org.jetbrains.java.decompiler.collections.FastSparseSetTest ‑ [1] [0], org.jetbrains.java.decompiler.util.collections.FastSparseSetFactory@1179fc8c, org.jetbrains.java.decompiler.collections.FastSparseSetTest$$Lambda$936/0x00007f6f542888d0@a03529c
org.jetbrains.java.decompiler.collections.FastSparseSetTest ‑ [1] [0], org.jetbrains.java.decompiler.util.collections.FastSparseSetFactory@1533338c, org.jetbrains.java.decompiler.collections.FastSparseSetTest$$Lambda$933/0x00007f0e4c2888d0@1179fc8c
org.jetbrains.java.decompiler.collections.FastSparseSetTest ‑ [1] [0], org.jetbrains.java.decompiler.util.collections.FastSparseSetFactory@1d3a03fe, org.jetbrains.java.decompiler.collections.FastSparseSetTest$$Lambda$936/0x00007f6f542888d0@a03529c
org.jetbrains.java.decompiler.collections.FastSparseSetTest ‑ [1] [0], org.jetbrains.java.decompiler.util.collections.FastSparseSetFactory@26101efc, org.jetbrains.java.decompiler.collections.FastSparseSetTest$$Lambda$936/0x00007f6f542888d0@a03529c
org.jetbrains.java.decompiler.collections.FastSparseSetTest ‑ [1] [0], org.jetbrains.java.decompiler.util.collections.FastSparseSetFactory@269c7104, org.jetbrains.java.decompiler.collections.FastSparseSetTest$$Lambda$933/0x00007f0e4c2888d0@1179fc8c
org.jetbrains.java.decompiler.collections.FastSparseSetTest ‑ [1] [0], org.jetbrains.java.decompiler.util.collections.FastSparseSetFactory@28b5662d, org.jetbrains.java.decompiler.collections.FastSparseSetTest$$Lambda$936/0x00007f6f542888d0@a03529c
org.jetbrains.java.decompiler.collections.FastSparseSetTest ‑ [1] [0], org.jetbrains.java.decompiler.util.collections.FastSparseSetFactory@2d47b06, org.jetbrains.java.decompiler.collections.FastSparseSetTest$$Lambda$936/0x00007f6f542888d0@a03529c
org.jetbrains.java.decompiler.collections.FastSparseSetTest ‑ [1] [0], org.jetbrains.java.decompiler.util.collections.FastSparseSetFactory@2ffb0d10, org.jetbrains.java.decompiler.collections.FastSparseSetTest$$Lambda$933/0x00007f0e4c2888d0@1179fc8c
…

@jaskarth jaskarth merged commit cb7f62e into master Mar 6, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: High High priority Type: Version Update A pull request that merges a new version into main
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants