Skip to content

Instantly share code, notes, and snippets.

@fkleon
Created November 29, 2016 02:10
Show Gist options
  • Save fkleon/0b1f0ba089a33cd3c02d55f80da0424a to your computer and use it in GitHub Desktop.
Save fkleon/0b1f0ba089a33cd3c02d55f80da0424a to your computer and use it in GitHub Desktop.
jaxrs-analyzer bytecode collector bug
package nz.net.catalyst.api.v1;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.core.Response;
@Path("/")
public class ResourceMinimal {
@GET
public Response get() {
for (int i = 0; i < 0; i++);
final String contentType = null;
return Response
.ok()
.type(contentType)
.build();
}
}
package nz.net.catalyst.api.v1;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.core.Response;
@Path("/")
public class ResourceMinimalWorking {
@GET
public Response get() {
int i;
for (i = 0; i < 0; i++);
final String contentType = null;
return Response
.ok()
.type(contentType)
.build();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment