Skip to content

airframe-surface: Do not traverse non-public constructor#2199

Merged
xerial merged 1 commit intomasterfrom
grpc-surface-scala3
May 28, 2022
Merged

airframe-surface: Do not traverse non-public constructor#2199
xerial merged 1 commit intomasterfrom
grpc-surface-scala3

Conversation

@xerial
Copy link
Copy Markdown
Member

@xerial xerial commented May 28, 2022

Surface for Scala 3 tried to traverse ServerServiceDefinition in grpc-java too deep and caused java.util.NoSuchElementException: key not found: <special-ops>.<FromJavaObject> error.

This PR provides a workaround so as not to traverse private constructors, which might have tricky java classes.
After a new version of AirSpec with this fix is released, DI with gRPC will work.

We still need a fix for #2194

@codecov
Copy link
Copy Markdown

codecov Bot commented May 28, 2022

Codecov Report

Merging #2199 (b58c2a9) into master (edec851) will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2199   +/-   ##
=======================================
  Coverage   82.61%   82.62%           
=======================================
  Files         313      313           
  Lines       12357    12357           
  Branches      780      780           
=======================================
+ Hits        10209    10210    +1     
+ Misses       2148     2147    -1     
Impacted Files Coverage Δ
...frame-rx/src/main/scala/wvlet/airframe/rx/Rx.scala 85.18% <0.00%> (+1.23%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update edec851...b58c2a9. Read the comment docs.

@xerial xerial added this to the Scala 3 milestone May 28, 2022
@xerial xerial merged commit 558e981 into master May 28, 2022
@xerial xerial deleted the grpc-surface-scala3 branch June 2, 2022 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant