Bug ID: 63970
           Summary: java.lang.ClassCastException:
                    ResourceURLConnection cannot be cast to
           Product: Tomcat 8
           Version: 8.5.49
          Hardware: PC
                OS: Mac OS X 10.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
  Target Milestone: ----

The following code starts throwing a ClassCastException after upgrading to
Tomcat 8.5.49:

URL url = this.getClass().getResource("/preset.propetries");
String scheme = url.getProtocol();
if ("jar".equals(scheme)) {
      JarURLConnection con = (JarURLConnection) url.openConnection();

I guess it happens because of this commit

You are receiving this mail because:
You are the assignee for the bug.
To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to