Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for code specific to 2.9 or 2.10
Maven is configure to add an extra source folder in sdt.core, the one matching the scala version. Added code to manage the missing InvalidCompanions class in 2.10 Fix #1001243
- Loading branch information
Luc Bourlier
committed
Sep 10, 2012
1 parent
6bd9a57
commit c4e3088
Showing
5 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
org.scala-ide.sdt.core/src-2.10/scala/tools/eclipse/SymbolsCompatibility.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,17 @@ | |||
package scala.tools.eclipse | |||
|
|||
import scala.reflect.internal.Symbols | |||
|
|||
/** | |||
* Trait used to keep 2.9-2.10 source compatibility | |||
*/ | |||
trait SymbolsCompatibility { self: Symbols => | |||
|
|||
/** | |||
* This class as been removed in 2.10, but we need its real implementation in 2.9 | |||
*/ | |||
case class InvalidCompanions(sym1: Symbol, sym2: Symbol) extends Throwable { | |||
|
|||
} | |||
|
|||
} |
10 changes: 10 additions & 0 deletions
10
org.scala-ide.sdt.core/src-2.9/scala/tools/eclipse/SymbolsCompatibility.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,10 @@ | |||
package scala.tools.eclipse | |||
|
|||
import scala.tools.nsc.symtab.Symbols | |||
|
|||
/** | |||
* Trait used to keep 2.9-2.10 source compatibility | |||
*/ | |||
trait SymbolsCompatibility { self: Symbols => | |||
|
|||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters