Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-26977

Warn against subclassing scala.App doesn't work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.4.0
    • 3.0.0
    • Spark Submit
    • None

    Description

      As per discussion in PR#3497, the warn against subclassing scala.App doesn't work. For example,

      object Test extends scala.App {
         // spark code
      }
      

      Scala will compile object Test into two Java classes, Test passed in by user and Test$ subclassing scala.App. Currect code checks against Test and thus there will be no warn when user's application subclassing scala.App

      Attachments

        Activity

          People

            mauzhang Manu Zhang
            mauzhang Manu Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: