Preheat the oven to 375 degrees. To make the topping, measure the flour, polenta, sugar, salt, baking powder, and aniseeds into a food processor or a stand mixer fitted with a paddle attachment. Add the butter and pulseor mix on medium-low speed until the mixture resembles coarse crumbs. Transfer the mixture to a bowl and make a well in the center. Pour the egg into the well and toss the egg and flour together lightly and thoroughly with you fingers until evenly mixed. The mixture will not adhere in the manner of a dough, but will clump together if pressed in your palm. Set aside until needed. To make the filling, combine all the ingredients in a large bowl and toss well until well mixed. Turn into a 2-quart shallow baking dish. Sprinkle the topping over the filling in a even layer. Do not press down. Place the dish on a baking sheet to catch the drips and place in the oven. Bake until the juices are bubbling up around the topping and the top is crisp, and golden brown, about 1 hour. Serve with ice cream if desired.