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

From version 4.3.+ using numberType in Java cannot compile #1802

Open
koww opened this issue Jun 10, 2024 · 1 comment
Open

From version 4.3.+ using numberType in Java cannot compile #1802

koww opened this issue Jun 10, 2024 · 1 comment

Comments

@koww
Copy link

koww commented Jun 10, 2024

Hello,

I am updating an existing contract test code and when updating the version from 4.2.0 to 4.3.0, an existing line starts to throw exception:

.numberType("some", "of", "my", "old", "test", "fields")
  ^
  required: String,Number[]
  found:    String,String,String,String,String,String)

And it's also there with 4.3.19
I'm using Gradle 7.4.2 and Java 17.

plugins {
    id "au.com.dius.pact" version "4.3.0"
}

dependencies {
    ...
    testImplementation("au.com.dius.pact.consumer:junit5:4.3.0")
}

Any insights would be appreciated. 
Thank you. 
@rholshausen
Copy link
Contributor

You might need to cast it. There are 3 versions, and your compiler is having trouble picking the correct one.

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

No branches or pull requests

2 participants