manuzhang commented on issue #23903: [SPARK-26977][CORE] Fix warn against 
subclassing scala.App
URL: https://github.com/apache/spark/pull/23903#issuecomment-468130145
 
 
   When user tries to run `MyApp`, the passed in main class is `MyApp` instead 
of `MyApp$`. The fix is to check whether `MyApp$` extends `scala.App`.
   
   ```
   childMainClass == "MyApp"
   s"$childMainClass$$" == "MyApp$"
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to