w3stling / rssreader

A simple Java library for reading RSS and Atom feeds
MIT License
152 stars 25 forks source link

VM does not exit after upgrade from 3.7.0 to 3.8.0 #170

Closed McBluna closed 3 months ago

McBluna commented 3 months ago

I've reduced the code to a minimum. Exit is printed to console, but VM keeps running. Environment is Java 17.0.11 running on Windows 11.

    public static void main(String[] args) throws IOException {
        RssReader rssReader = new RssReader();
        List<Item> items = rssReader.read("https://www.tagesschau.de/infoservices/alle-meldungen-100~rss2.xml").toList();
        System.out.println(items);
        System.out.println("exit");
    }

grafik

McBluna commented 3 months ago

Btw changing to Java 21.0.3 didn't change anything.

McBluna commented 3 months ago

Another try but still no working

    public static void main(String[] args) throws IOException {
        RssReader reader = new RssReader();
        try (Stream<Item> rssFeed = reader.read(URL)) {
        }
        System.out.println("Exit");
    }
w3stling commented 3 months ago

Fixed by PR #171 Please try release v3.8.1

McBluna commented 3 months ago

Sorry I wasn't at home. It's working again with 3.8.1. Thank you so much.