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

could not access: readStream; in class: io.vertx.codegen.type.ApiTypeInfo #277

Open
jerrywgray opened this issue Sep 9, 2019 · 1 comment

Comments

@jerrywgray
Copy link

jerrywgray commented Sep 9, 2019

Trying out the 4.0.0-SNAPSHOT build and while it was working a couple weeks ago I'm now getting this really cryptic error that I haven't been able to pinpoint down to anywhere.

vertx/blueprint/kue/CallbackKue.java:21: error: Could not generate model for io.vertx.blueprint.kue.CallbackKue: [Error: could not access: readStream; in class: io.vertx.codegen.type.ApiTypeInfo]
public interface CallbackKue extends JobService {
       ^
  [Near : {... } ....}]
                  ^
  [Line: 25, Column: 5]

The code is basically just a Kotlin translation of the vertx kue blueprint. The service interfaces are still in Java though. There's a JobCodec in Java I had to add since the codegen doesn't handle Kotlin classes well for DataObjects. Which is why it's using the 4.0.0 version of the code, it uses the new mappers(previously codecs) function in package-info.java. The codegen is getting run by kapt, which was working fine before. The same error happens with both service files, CallbackKueue and JobService if you're familiar with the Kue library. Both basically just point at the interface declaration itself, nowhere useful in particular

Just wondering if you've come across any similar errors while testing the 4.0 branch?

@vietj
Copy link
Member

vietj commented Sep 13, 2019

we have done some refactorings, can you provide a reproducer project ?

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