Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-3810

JDBCCMRFieldBridge2 gives wrong class name on exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • No Release
    • JBossAS-4.0.4.GA, JBossAS-4.0.5.GA
    • CMP service
    • None

      JDBCCMRFieldBridge2 reports wrong class on exception message:

      JDBCCMRFieldBridge2.getPrimaryKey(Object o):

      if(!relatedEntity.getLocalInterface().isInstance(o))

      { throw new IllegalArgumentException("Argument must be of type " + entity.getLocalInterface().getName()); }

      Shouldn't it be:
      throw new IllegalArgumentException("Argument must be of type " + !relatedEntity.getLocalInterface().getName());

              olubyans@redhat.com Alexey Loubyansky
              anajavi anajavi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: