opened
pmlopes
username_0
A few bugs are fixed with handling serializable/deserializable on data objects. As a second step better error messages are now provided to the user. For example:

```java
@DataObject
class DO {
}
```

Used on:

```java
@VertxGen
interface MyAPI {
  void method(Handler<AsyncResult<DO>> handler);
}
```

Which would before fail with the message:

```
"type DO is not legal for use for a parameter in code generation"
```

Will now report:

```
@DataObject type DO does not declare a required serializable method when used in return
```

It is now clear that the `DataObject` contract is incomplete and the user should either implement a `toJson()` method or add a custom serializer annotation.
Better error messages
issue
created
vietj
username_1
cherry-picked directly - thanks
comment