Skip to content
This repository was archived by the owner on Nov 27, 2018. It is now read-only.

Case classes with companions are not always recognized #21

Open
rtimush opened this issue Apr 29, 2014 · 1 comment
Open

Case classes with companions are not always recognized #21

rtimush opened this issue Apr 29, 2014 · 1 comment

Comments

@rtimush
Copy link

rtimush commented Apr 29, 2014

Case classes with companion objects are sometimes not recognized by Jacks. It seems that the problem is in ScalaTypeSig.cls computation — it selects the first available ClassSymbol, but the first one is something synthetic generated by a companion object. Here is a list of class symbols I have:

[info] ClassSymbol(CaseClass, owner=com.my.package, flags=400, info=25 ,None)
[info] ClassSymbol(CaseClass, owner=com.my.package, flags=40, info=43 ,None)

I use scala 2.10.4, jacks 2.3.3.

@rtimush
Copy link
Author

rtimush commented Apr 29, 2014

I solved the issue by adding && !c.isModule condition, but may be there are better alternatives

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant