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

Warn against subclassing scala.App doesn't work

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 3.0.0
    • Component/s: Spark Submit
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: