Migrated from http://lampsvn.epfl.ch/trac/scala/ticket/1238
When I add the Scala nature to a Java Project in Eclipse by right-clicking and selecting Scala => Add Scala Nature everything seems to work fine and I can now mix my .java and .scala class files for compilation. I can mix my classes across languages. However, this only seems to work for classes and not for objects. When I create a standalone object or try to refer to a class companion object with ObjectName$.MODULE$ Eclipse is unable to locate the object. Autocomplete pops up the classes from my .scala files but none of the objects. If I just type the objects in an error occurs. I can see the object .class files in the bin directory, but Eclipse just doesn’t see them.
See this thread for more: http://www.nabble.com/Objects-not-visible-in-mixed-Eclipse-Project-to18820801.html#a18851824
No file chosen
You have an empty file field. Please select or remove it.
Drop the files anywhere in this page to upload them as attachments.