Github user ScrapCodes commented on the pull request:

    https://github.com/apache/spark/pull/1463#issuecomment-49576941
  
    @pwendell The reason I did this is, if you compile a file A.scala with 
contents 
    ```scala
    @SomeAnnotation
    object A
    ```
    it will produce two class files A.class and A$.class. And I don't 
understand why scala reflection does not detect the annotation on A.class, it 
is only detected on A$.class. This was the reason for doing it. 
    
    The impact of this change is that, when we see annotation on a class we 
assume it is also present on its companion.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to