Skip to content

Infinite recursion when using Byte Arrays #89

@SentryMan

Description

@SentryMan

So I have this controller that's supposed to produce a png image.

  @Produces("image/png")
  @Get("/get")
  byte[] test() {
    return service.callDownStream();
  }

But when I try to compile I get a Stack Overflow Error.

image

This method appears to be making unlimited recursive calls.

private Schema<?> buildArraySchema(TypeMirror type) {
ArrayType arrayType = types.getArrayType(type);
Schema<?> itemSchema = toSchema(arrayType.getComponentType());
ArraySchema arraySchema = new ArraySchema();
arraySchema.setItems(itemSchema);
return arraySchema;
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions