Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8253566

clazz.isAssignableFrom will return false for interface implementors

    XMLWordPrintable

Details

    • b11
    • 15
    • b20
    • x86_64
    • windows_10
    • Verified

    Backports

      Description

        A DESCRIPTION OF THE PROBLEM :
        I create an web application on tomcat server with spring framework and hibernate validation.
        I have an interface which define method with javax.validation Annotations.

        We use Hibernate-validation to check methods:
        executableValidator.validateParameters(target, method, args);

        see https://github.com/hibernate/hibernate-validator/blob/7987755f0617504b567f2a5a0437d8695659e4ce/engine/src/main/java/org/hibernate/validator/internal/metadata/aggregated/rule/MethodConfigurationRule.java#L73-L77

        Sometime we will get the wrong result and a ConstraintDeclarationException is thrown.
        I checked that all use same classloader. This also happen with debugger but if I evaluate toString for one of class the result will be correct.

        With 14.0.2 I didn't see this behaviour. After Upgrade to jdk15 this will occurs often after restart the server.

         that implements i

        REGRESSION : Last worked in version 14.0.2


        FREQUENCY : often


        Attachments

          Issue Links

            Activity

              People

                roland Roland Westrelin
                webbuggrp Webbug Group
                Votes:
                0 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: