Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.4.0
-
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