- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
scalac java compilation
Tue, 2009-01-13, 20:41
Scalads and lasses,
i believe i've hit a bug in the scalac java compilation. i'm not 100% certain. To verify i need a way to tell scalac *not* to compile java files in the mvn build process for a lift app.
i will briefly describe a portion of my build process. i'm building several DSLs. i use BNFC to rapid prototype the grammars the build the java parsers. Then i use the parsers in scala+lift applications. The reason i mention this is because BNFC squirts out a makefile to build the java. So, i've got a standalone build using gnu make just for the java parser. i can compare this to mvn build. The parser is included in the model part of a lift app and built using the mvn build system.
i just made a change to a parser and verified it builds and works as a java parser. Then i essentially copied the working code into the lift app. Note, when i build my app with mvn i've got the javac compilation line configured to show the command line. So, when i hit the following error, i'm pretty sure this is coming from the scalac compiler. Since the file in question compiles just fine, i'm fairly certain this is a bug in scalac.
i can make all the code available, but i really, really don't have the cycles just now to reduce this to a smallest test case. i don't have to be blocked it i can just stop scalac from compiling the java files.
Best wishes,
--greg
--
L.G. Meredith
Managing Partner
Biosimilarity LLC
806 55th St NE
Seattle, WA 98105
+1 206.650.3740
http://biosimilarity.blogspot.com
i believe i've hit a bug in the scalac java compilation. i'm not 100% certain. To verify i need a way to tell scalac *not* to compile java files in the mvn build process for a lift app.
i will briefly describe a portion of my build process. i'm building several DSLs. i use BNFC to rapid prototype the grammars the build the java parsers. Then i use the parsers in scala+lift applications. The reason i mention this is because BNFC squirts out a makefile to build the java. So, i've got a standalone build using gnu make just for the java parser. i can compare this to mvn build. The parser is included in the model part of a lift app and built using the mvn build system.
i just made a change to a parser and verified it builds and works as a java parser. Then i essentially copied the working code into the lift app. Note, when i build my app with mvn i've got the javac compilation line configured to show the command line. So, when i hit the following error, i'm pretty sure this is coming from the scalac compiler. Since the file in question compiles just fine, i'm fairly certain this is a bug in scalac.
i can make all the code available, but i really, really don't have the cycles just now to reduce this to a smallest test case. i don't have to be blocked it i can just stop scalac from compiling the java files.
Best wishes,
--greg
--
L.G. Meredith
Managing Partner
Biosimilarity LLC
806 55th St NE
Seattle, WA 98105
+1 206.650.3740
http://biosimilarity.blogspot.com
Tue, 2009-01-13, 21:07
#2
Re: scalac java compilation
Scalads and lasses,
i forgot to put the error in.
Best wishes,
--greg
[INFO] [compiler:compile]
[INFO] Compiling 139 source files to /Users/lgm/work/src/projex/bobj/naturalselection/target/classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
/Users/lgm/work/src/projex/bobj/naturalselection/src/main/scala/com/biosimilarity/naturalselection/model/dataset/Absyn/TupleStructCond.java:[8,136] visit(com.biosimilarity.naturalselection.model.dataset.Absyn.TupleValCond,A) in com.biosimilarity.naturalselection.model.dataset.Absyn.StructureTupleCondition.Visitor<R,A> cannot be applied to (com.biosimilarity.naturalselection.model.dataset.Absyn.TupleStructCond,A)
/Users/lgm/work/src/projex/bobj/naturalselection/src/main/scala/com/biosimilarity/naturalselection/model/dataset/Absyn/TupleStructCond.java:[8,136] visit(com.biosimilarity.naturalselection.model.dataset.Absyn.TupleValCond,A) in com.biosimilarity.naturalselection.model.dataset.Absyn.StructureTupleCondition.Visitor<R,A> cannot be applied to (com.biosimilarity.naturalselection.model.dataset.Absyn.TupleStructCond,A)
[INFO] ------------------------------------------------------------------------
On Tue, Jan 13, 2009 at 11:34 AM, Meredith Gregory <lgreg.meredith@gmail.com> wrote:
--
L.G. Meredith
Managing Partner
Biosimilarity LLC
806 55th St NE
Seattle, WA 98105
+1 206.650.3740
http://biosimilarity.blogspot.com
i forgot to put the error in.
Best wishes,
--greg
[INFO] [compiler:compile]
[INFO] Compiling 139 source files to /Users/lgm/work/src/projex/bobj/naturalselection/target/classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
/Users/lgm/work/src/projex/bobj/naturalselection/src/main/scala/com/biosimilarity/naturalselection/model/dataset/Absyn/TupleStructCond.java:[8,136] visit(com.biosimilarity.naturalselection.model.dataset.Absyn.TupleValCond,A) in com.biosimilarity.naturalselection.model.dataset.Absyn.StructureTupleCondition.Visitor<R,A> cannot be applied to (com.biosimilarity.naturalselection.model.dataset.Absyn.TupleStructCond,A)
/Users/lgm/work/src/projex/bobj/naturalselection/src/main/scala/com/biosimilarity/naturalselection/model/dataset/Absyn/TupleStructCond.java:[8,136] visit(com.biosimilarity.naturalselection.model.dataset.Absyn.TupleValCond,A) in com.biosimilarity.naturalselection.model.dataset.Absyn.StructureTupleCondition.Visitor<R,A> cannot be applied to (com.biosimilarity.naturalselection.model.dataset.Absyn.TupleStructCond,A)
[INFO] ------------------------------------------------------------------------
On Tue, Jan 13, 2009 at 11:34 AM, Meredith Gregory <lgreg.meredith@gmail.com> wrote:
Scalads and lasses,
i believe i've hit a bug in the scalac java compilation. i'm not 100% certain. To verify i need a way to tell scalac *not* to compile java files in the mvn build process for a lift app.
i will briefly describe a portion of my build process. i'm building several DSLs. i use BNFC to rapid prototype the grammars the build the java parsers. Then i use the parsers in scala+lift applications. The reason i mention this is because BNFC squirts out a makefile to build the java. So, i've got a standalone build using gnu make just for the java parser. i can compare this to mvn build. The parser is included in the model part of a lift app and built using the mvn build system.
i just made a change to a parser and verified it builds and works as a java parser. Then i essentially copied the working code into the lift app. Note, when i build my app with mvn i've got the javac compilation line configured to show the command line. So, when i hit the following error, i'm pretty sure this is coming from the scalac compiler. Since the file in question compiles just fine, i'm fairly certain this is a bug in scalac.
i can make all the code available, but i really, really don't have the cycles just now to reduce this to a smallest test case. i don't have to be blocked it i can just stop scalac from compiling the java files.
Best wishes,
--greg
--
L.G. Meredith
Managing Partner
Biosimilarity LLC
806 55th St NE
Seattle, WA 98105
+1 206.650.3740
http://biosimilarity.blogspot.com
--
L.G. Meredith
Managing Partner
Biosimilarity LLC
806 55th St NE
Seattle, WA 98105
+1 206.650.3740
http://biosimilarity.blogspot.com
-Josh
On Tue, Jan 13, 2009 at 2:34 PM, Meredith Gregory <lgreg.meredith@gmail.com> wrote: