JDK-8008715 : Noisy warnings when compiling org.jcp.xml.dsig.internal.dom
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.xml.crypto
  • Affected Version: 8
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2013-02-22
  • Updated: 2013-05-22
  • Resolved: 2013-05-22
Related Reports
Duplicate :  
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
Comments
These warnings will be fixed when I pull in Apache Santuario 1.5.4 for JDK-8011547.
22-05-2013

These have been fixed in the Apache Santuario project (which this code is based on), but the code in the JDK doesn't yet have these changes. I should be able to pull in those changes to fix these warnings.
25-02-2013