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

Noisy warnings when compiling org.jcp.xml.dsig.internal.dom

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 8
    • Fix Version/s: None
    • Component/s: security-libs
    • Labels:
      None

      Description

      The javac compiler was changed recently to omit warnings when when hashCode or equals is overridden but not both. This has resulted in a lot of new warnings in the new build and makes it really hard to see real errors when re-building.

      Here's what we get for org.jcp.xml.dsig.internal.dom

      warning: [overrides] Class org.jcp.xml.dsig.internal.dom.DOMX509IssuerSerial
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class org.jcp.xml.dsig.internal.dom.DOMReference
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class org.jcp.xml.dsig.internal.dom.DOMTransform
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class org.jcp.xml.dsig.internal.dom.DOMKeyInfo
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class org.jcp.xml.dsig.internal.dom.DOMX509Data
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class org.jcp.xml.dsig.internal.dom.DOMXMLSignature.DOMSignatureValue
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class org.jcp.xml.dsig.internal.dom.DOMXMLSignature
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class org.jcp.xml.dsig.internal.dom.DOMSignatureProperty
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class org.jcp.xml.dsig.internal.dom.DOMCanonicalizationMethod
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class org.jcp.xml.dsig.internal.dom.DOMSignatureMethod
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class org.jcp.xml.dsig.internal.dom.DOMSignedInfo
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class org.jcp.xml.dsig.internal.dom.DOMRetrievalMethod
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class org.jcp.xml.dsig.internal.dom.DOMSignatureProperties
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class org.jcp.xml.dsig.internal.dom.DOMManifest
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class org.jcp.xml.dsig.internal.dom.DOMXMLObject
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class org.jcp.xml.dsig.internal.dom.DOMKeyName
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class org.jcp.xml.dsig.internal.dom.DOMDigestMethod
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class org.jcp.xml.dsig.internal.dom.DOMKeyValue
        overrides method equals but does not overrides method hashCode from Object

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mullan Sean Mullan
              Reporter:
              alanb Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: