It is not a bug because the shape examples that come with Processing work. I changed your setup code Highlighted) and it worked.
- public void setup() {
- size(1280, 720, P2D);
- this.shape = createShape();
- this.shape.stroke(0);
- this.shape.strokeWeight(10);
- this.shape.beginShape();
- this.shape.vertex(width / 2, 0);
- this.shape.vertex(width / 2, height);
- this.shape.endShape();
- }