- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Does the compiler build with -Xexperimental
Fri, 2011-11-04, 09:36
Hi,
I'm running into a number of problems trying to build ("ant dist") trunk with -Xexperimental.
Is this expected? Should I open bug reports for them?
--
Thanks,
Jordi.
I'm running into a number of problems trying to build ("ant dist") trunk with -Xexperimental.
Is this expected? Should I open bug reports for them?
--
Thanks,
Jordi.
Fri, 2011-11-04, 11:37
#2
Re: Does the compiler build with -Xexperimental
I think it's because of overridable objects -- enabling them correctly results in the following error:
[scalacfork] /Users/adriaan/git/scala-dev/src/library/scala/xml/MetaData.scala:30: error: could not optimize @tailrec annotated method concatenate: it is neither private nor final so can be overridden
[scalacfork] def concatenate(attribs: MetaData, new_tail: MetaData): MetaData =
[scalacfork] ^
simply removing the @tailrec annotation should get you going I guess
On Fri, Nov 4, 2011 at 10:07 AM, Paul Phillips <paulp@improving.org> wrote:
[scalacfork] /Users/adriaan/git/scala-dev/src/library/scala/xml/MetaData.scala:30: error: could not optimize @tailrec annotated method concatenate: it is neither private nor final so can be overridden
[scalacfork] def concatenate(attribs: MetaData, new_tail: MetaData): MetaData =
[scalacfork] ^
simply removing the @tailrec annotation should get you going I guess
On Fri, Nov 4, 2011 at 10:07 AM, Paul Phillips <paulp@improving.org> wrote:
On Fri, Nov 4, 2011 at 9:36 AM, Jordi Salvat i Alabart
<jordi.salvat.i.alabart@gmail.com> wrote:
> Hi,
>
> I'm running into a number of problems trying to build ("ant dist") trunk
> with -Xexperimental.
>
> Is this expected? Should I open bug reports for them?
I find people expect pretty different things. I expect it though,
which is a bad sign for anyone expecting anything else. We don't do
continuous testing under -Xexperimental.
Fri, 2011-11-04, 11:47
#3
Re: Does the compiler build with -Xexperimental
That warning is bogus, you can't override top level objects. I'll fix it.
Fri, 2011-11-04, 18:57
#4
Re: Does the compiler build with -Xexperimental
This was the first one. When I fixed that one I ran into another...
test.suite:
[partest] Compiling files that are expected to build
BUILD FAILED
/home/jordi/workspace/scala/build.xml:1564: java.lang.ClassFormatError: Illegal class modifiers in class scala/actors/scheduler/ResizableThreadPoolScheduler: 0x419
[stack dump follows]
My question is really whether I should report those as bugs or that would be causing more noise than benefit.
--
Salut,
Jordi.
2011/11/4 Adriaan Moors <adriaan.moors@epfl.ch>
test.suite:
[partest] Compiling files that are expected to build
BUILD FAILED
/home/jordi/workspace/scala/build.xml:1564: java.lang.ClassFormatError: Illegal class modifiers in class scala/actors/scheduler/ResizableThreadPoolScheduler: 0x419
[stack dump follows]
My question is really whether I should report those as bugs or that would be causing more noise than benefit.
--
Salut,
Jordi.
2011/11/4 Adriaan Moors <adriaan.moors@epfl.ch>
I think it's because of overridable objects -- enabling them correctly results in the following error:
[scalacfork] /Users/adriaan/git/scala-dev/src/library/scala/xml/MetaData.scala:30: error: could not optimize @tailrec annotated method concatenate: it is neither private nor final so can be overridden
[scalacfork] def concatenate(attribs: MetaData, new_tail: MetaData): MetaData =
[scalacfork] ^
simply removing the @tailrec annotation should get you going I guess
On Fri, Nov 4, 2011 at 10:07 AM, Paul Phillips <paulp@improving.org> wrote:On Fri, Nov 4, 2011 at 9:36 AM, Jordi Salvat i Alabart
<jordi.salvat.i.alabart@gmail.com> wrote:
> Hi,
>
> I'm running into a number of problems trying to build ("ant dist") trunk
> with -Xexperimental.
>
> Is this expected? Should I open bug reports for them?
I find people expect pretty different things. I expect it though,
which is a bad sign for anyone expecting anything else. We don't do
continuous testing under -Xexperimental.
Fri, 2011-11-04, 21:47
#5
Re: Does the compiler build with -Xexperimental
On Fri, Nov 4, 2011 at 6:54 PM, Jordi Salvat i Alabart
wrote:
> BUILD FAILED
> /home/jordi/workspace/scala/build.xml:1564: java.lang.ClassFormatError:
> Illegal class modifiers in class
Hmm, so far I can't reproduce that.
> My question is really whether I should report those as bugs or that would be
> causing more noise than benefit.
What a nice day it is when someone considers the question! Thanks for
that. There's no universal answer; it's true that sometimes it's not
so useful to open a ticket, but if in doubt, err on the side of the
ticket. In this case I'm definitely interested because a
ClassFormatError is never part of the plan.
Sat, 2011-11-05, 02:17
#6
Re: Does the compiler build with -Xexperimental
2011/11/4 Paul Phillips <paulp@improving.org>
:-)
I seem to be in really murky waters: in trying to reproduce it I ran into two JVM SIGSEGVs while compiling before I got to see it. I'll try a couple more times and file that report.
--
Salut,
Jordi.
What a nice day it is when someone considers the question! Thanks for
that.
:-)
In this case I'm definitely interested because a
ClassFormatError is never part of the plan.
I seem to be in really murky waters: in trying to reproduce it I ran into two JVM SIGSEGVs while compiling before I got to see it. I'll try a couple more times and file that report.
--
Salut,
Jordi.
Sat, 2011-11-05, 04:07
#7
Re: Does the compiler build with -Xexperimental
On Sat, Nov 5, 2011 at 2:15 AM, Jordi Salvat i Alabart
wrote:
> I seem to be in really murky waters: in trying to reproduce it I ran into
> two JVM SIGSEGVs while compiling before I got to see it. I'll try a couple
> more times and file that report.
I was able to reproduce it on osx lion with the usual jvm.
On Fri, Nov 4, 2011 at 9:36 AM, Jordi Salvat i Alabart
wrote:
> Hi,
>
> I'm running into a number of problems trying to build ("ant dist") trunk
> with -Xexperimental.
>
> Is this expected? Should I open bug reports for them?
I find people expect pretty different things. I expect it though,
which is a bad sign for anyone expecting anything else. We don't do
continuous testing under -Xexperimental.