Heat the oven to 400°F (200°C) and line a baking sheet with parchment.
Bring the water, butter and salt to a boil. Add the flour all at once and stir hard over low heat 1 to 2 minutes, until the dough forms a ball and leaves a film on the pan.
Cool 5 minutes, then beat in the eggs one at a time until the dough is smooth and glossy and falls from the spoon in a thick V.
Pipe 4-inch logs onto the sheet. Bake 10 minutes, then lower the heat to 350°F (175°C) and bake 20 to 25 minutes more, until deep golden and dry. Cool on a rack.
Chocolate pastry cream
Heat the milk until steaming. Whisk the yolks, sugar and cornstarch in a bowl, then whisk in the hot milk.
Return to the pan and cook over medium heat, whisking, until it thickens and bubbles for 1 minute. Off the heat, stir in the chocolate and butter. Cover the surface with plastic and chill.
Glaze
Warm the cream, pour it over the chocolate and stir until smooth.
Poke 2 or 3 small holes in the base of each éclair and pipe in the cream. Dip the tops in the glaze and let it set.