- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Error in Rename Java Class
Tue, 2009-01-13, 07:09
Scala Tools team,
I'm using Eclipse 3.4.1 with Scala Eclipse Plugin 2.7.3.RC2. My scala main snippet looks like:
- All resources have been excluded from refactoring. Cannot proceed.
x Found potential matches. Please review changes on the preview page
x File.scala has syntax errors, contents of that file will not be...
! Type contains a main method, some applications ... may not work after refactoring.
Any ideas what this means or how to resolve it? Is this plugin supposed to be able to support Java->Scala refactors?
Thanks,
Sam Reid
I'm using Eclipse 3.4.1 with Scala Eclipse Plugin 2.7.3.RC2. My scala main snippet looks like:
val tc=new package.TestClassHere TestClass is defined in a Java source file also in my eclipse project. When I navigate to TestClass.java and Refactor->Rename the class declaration, I get "A fatal error occurred while performing the refactoring", with 4 problems:
println(tc)
- All resources have been excluded from refactoring. Cannot proceed.
x Found potential matches. Please review changes on the preview page
x File.scala has syntax errors, contents of that file will not be...
! Type contains a main method, some applications ... may not work after refactoring.
Any ideas what this means or how to resolve it? Is this plugin supposed to be able to support Java->Scala refactors?
Thanks,
Sam Reid
On Tue, Jan 13, 2009 at 6:08 AM, Samuel Robert Reid wrote:
> Is this plugin supposed to be able to support Java->Scala refactors?
Not yet I'm afraid ... but watch this space ...
Cheers,
Miles