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

Noisy warnings from javax.print.attribute.standard.*

    XMLWordPrintable

    Details

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

      Description

      I've submitted this to client-libs/2d as there doesn't seem to be an obvious place for javax.print issues.

      The javac compiler was changed recent 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 javax.print.attribute.standard, it would really nice to get these cleaned quickly.

      warning: [overrides] Class javax.print.attribute.standard.Destination
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class javax.print.attribute.standard.DocumentName
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class javax.print.attribute.standard.PrinterMakeAndModel
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class javax.print.attribute.standard.RequestingUserName
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class javax.print.attribute.standard.JobName
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class javax.print.attribute.standard.PrinterResolution
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class javax.print.attribute.standard.JobMediaSheetsCompleted
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class javax.print.attribute.standard.JobMediaSheetsSupported
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class javax.print.attribute.standard.PrinterMoreInfo
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class javax.print.attribute.standard.PrinterURI
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class javax.print.attribute.standard.DateTimeAtProcessing
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class javax.print.attribute.standard.PrinterMessageFromOperator
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class javax.print.attribute.standard.DateTimeAtCreation
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class javax.print.attribute.standard.JobImpressionsCompleted
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class javax.print.attribute.standard.CopiesSupported
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class javax.print.attribute.standard.JobHoldUntil
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class javax.print.attribute.standard.NumberUpSupported
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class javax.print.attribute.standard.JobImpressionsSupported
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class javax.print.attribute.standard.JobImpressions
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class javax.print.attribute.standard.JobPrioritySupported
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class javax.print.attribute.standard.NumberOfInterveningJobs
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class javax.print.attribute.standard.PagesPerMinute
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class javax.print.attribute.standard.JobPriority
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class javax.print.attribute.standard.DateTimeAtCompleted
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class javax.print.attribute.standard.QueuedJobCount
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class javax.print.attribute.standard.NumberUp
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class javax.print.attribute.standard.JobKOctets
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class javax.print.attribute.standard.PrinterMoreInfoManufacturer
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class javax.print.attribute.standard.JobMessageFromOperator
        overrides method equals but does not overrides method hashCode from Object
      warning: [overrides] Class javax.print.attribute.standard.PrinterInfo
        overrides method equals but does not overrides method hashCode from Object

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              vromero Vicente Arturo Romero Zaldivar
              Reporter:
              alanb Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: