Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-940

Scala match error in javaapi.Implicits

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.8.0
    • Fix Version/s: 0.8.0
    • Component/s: None
    • Labels:
      None

      Description

      This would affect javaapi users who (correctly) test for null on API calls (e.g., if (partitionMetadata.leader == null))

      Right now, we actually get a match error:
      scala.MatchError: null
      at kafka.javaapi.Implicits$.optionToJavaRef(Implicits.scala:38)
      at kafka.javaapi.Implicits$.optionToJavaRef(Implicits.scala:40)
      at kafka.javaapi.PartitionMetadata.leader(TopicMetadata.scala:51)
      <truncated>

        Attachments

        1. KAFKA-940-v1.patch
          0.5 kB
          Joel Jacob Koshy

          Activity

            People

            • Assignee:
              jjkoshy Joel Jacob Koshy
              Reporter:
              jjkoshy Joel Jacob Koshy
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: