| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If the test names can be believed, this covers
SI-294 SI-1751 SI-1782 SI-2318 SI-3897
SI-4649 SI-4786 SI-5293 SI-5399 SI-5418
SI-5606 SI-5610 SI-5639
Most of these were moved to pending in 1729b26500
due to failures of unknown cause. It was suggested
they be brought back "as soon as possible" and that
was three months ago; I suppose it's now possible.
If they need to be disabled again, please move them
to test/disabled, not to test/pending. "disabled"
should mean a formerly passing test in limbo; "pending"
tests document bugs which await fixing.
I also removed some dead files in test/ - the
files with a "cmds" extension are from a failed
experiment and do not do anything.
|
|
|
|
| |
It's test/disabled/XXX, not test/files/disabled/XXX.
|
|\
| |
| | |
Regex.unapplySeq should not take Any (Fixes SI-6406)
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This deprecates unapplySeq(Any) and adds overloaded
unapplySeq(CharSequence) and unapplySeq(Match), with the
putative advantage that you can't try to extract the unextractable.
Regex is massaged so that the underlying Pattern is primary,
rather than the String-valued expression. Regex and its
unanchored companion (I almost wrote unmoored) share a
Pattern object, so that unapplySeq(Match) can easily test
whether the Match was generated by this Regex; in that case,
the match result is used immediately, instead of reapplying
the regex to the matched string.
The documentation is massaged to reflect unanchored and also to
align with the underlying terminology, e.g., "subgroup" really
just means "group."
|
|\ \
| | |
| | | |
Added utility function shortClass.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Pretty sick of names like
scala> typeOf[List[Int]].getClass.getName
res0: String = scala.reflect.internal.Types$TypeRef$$anon$1
I wrote this so I can see what the class of some arbitrary
thing is in a way which my little brain can understand. For
the example above we get
scala> shortClassOfInstance(typeOf[List[Int]])
res0: String = ArgsTypeRef with AliasTypeRef
Let's pimp a "shortClassName" onto AnyRef and be happy.
|
|\ \ \
| | | |
| | | | |
Renamed hasSymbol to hasSymbolField.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Suggestion by retronym that the obvious implementation of
"hasSymbol" be called "hasSymbol" reminded me we have a method
called "hasSymbol" which does not have that implementation, and
which has burned us already with subtle bugginess. I think that
"hasSymbolField" is self-documenting.
|
|\ \ \ \
| | | | |
| | | | | |
SI-6467: Zero element in aggregate now by-name
|
| | | | | |
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
Fix for gluttunous raw type creation.
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
ClassfileParser had a bug which led to it thinking pretty
much anything might be a raw type, and thus creating extra
symbols for no good reason. When compiling scala.collection,
before this change it thought 1094 raw types had passed by;
afterward it thought 237.
|
|\ \ \ \
| |/ / /
|/| | | |
Fix scaladoc links in a couple of places.
|
| | | | |
|
|\ \ \ \
| |/ / /
|/| | | |
Merge remote-tracking branch 'scala/2.10.x' into master
|
|/| | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Conflicts:
build.number
src/reflect/scala/reflect/internal/Types.scala
|
| |\ \ \
| | | | |
| | | | | |
Merge branch 'scala/2.10.0-wip' into 2.10.x
|
| |/| | | |
|
| | |\ \ \
| | | | | |
| | | | | | |
Fixes deprecation annotations for 2.10.0
|
| | | | | | |
|
| | |\ \ \ \
| | | | | | |
| | | | | | | |
Improved the `scala.language` documentation
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Also corrected the links in the library rootdoc.
**Note: We need to fast track this commit so it reaches master in the
next 12 hours, before we generate the next nightly docs.**
Review by @odersky
|
| | |\ \ \ \ \
| | | |/ / / /
| | |/| | | | |
SI-6442 - Add ActorDSL object for actor migration kit
|
| | | |/ / /
| | | | | |
| | | | | |
| | | | | | |
Removes MigrationSystem, since ActorDSL replaces it.
|
| | |\ \ \ \
| | | | | | |
| | | | | | | |
Fix StringContext documentation.
|
| | | |/ / /
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
It doesn't call "new", as I discovered after some head
scratching.
|
| | |\ \ \ \
| | | | | | |
| | | | | | | |
Issue/6311
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
This covers the situation which broke in 5c5e8d4dcd,
reverted in the previous commit.
|
| | | |/ / /
| | | | | |
| | | | | |
| | | | | | |
This reverts commit 5c5e8d4dcd151a6e2bf9e7c259c618b9b4eff00f.
|
| | |\ \ \ \
| | | |/ / /
| | |/| | | |
SI-6449 Adds version arg to @deprecated usages (non-compiler sources)
|
| | | | | | |
|
| | | | | | |
|
| | |\ \ \ \
| | | |/ / /
| | |/| | | |
|
| | |\ \ \ \
| | | | | | |
| | | | | | | |
add a bit about unicode to scaladoc.
|
| | |/ / / / |
|
| |\ \ \ \ \
| | |_|/ / /
| |/| | | | |
Bump version number for next dev cycle.
|
| | |/ / / |
|
| |\ \ \ \
| | | | | |
| | | | | | |
a fork of isValueType and isNonValueType
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
only affects runtime reflection, because Symbol.typeSignature
is only defined in the reflection API. the rest of the compiler
uses Symbol.info instead.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
There's some very sketchy behavior visible - I'm printing a
method signature and getting this:
[B <: <?>, That <: <?>](f: <?>)(implicit cbf: <?>)That
But there's no exposed way to force the info. Am I
supposed to call isSealed or something?
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Restrictions regarding how non-value types can be used have
generally not been enforced explicitly, depending instead on
the fact that the compiler wouldn't attempt to use them in
strange ways like offering a method type as a type argument.
Since users can now create most types from scratch, it has
become important to enforce the restrictions in a more
direct fashion.
This was a lot harder than it probably should have been
because there are so many types which go unmentioned by the
specification. Hopefully a useful exercise in any case.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
If we're reifying non-value types (e.g. MethodTypes), we can't use them
as type arguments for TypeTag/WeakTypeTag factory methods, otherwise
the macro expansion won't typecheck:
http://groups.google.com/group/scala-internals/browse_thread/thread/2d7bb85bfcdb2e2
This situation is impossible if one uses only reify and type tags, but
c.reifyTree and c.reifyType exposes in the macro API let anyone feed
anything into the reifier.
Therefore I now check the tpe that is about to be used in TypeApply
wrapping TypeTag/WeakTypeTag factory methods and replace it with AnyTpe
if it doesn't fit.
|
| | | | | | |
|
| |\ \ \ \ \
| | | | | | |
| | | | | | | |
Removes discrepancy between SIP 15 and compiler
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
There was a discrepancy in that the compiler alternatively accepts a val parameter or an unbox method for a value class but SIP 15 does not mention the unbox method. I commented out the line in the compiler that does it.
|
| |\ \ \ \ \ \
| | |_|/ / / /
| |/| | | | | |
SI-6380 Add @throws[Exception]
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
This change allows an additional notation of the @throws annotation:
Old-style: @throws(classOf[Exception])
New-style: @throws[Exception]
The optional String argument moves @throws in line with @deprecated,
@migration, etc. and prevents confusion caused by the default inheritance
of ScalaDoc comments and the non-inheritance of annotations.
Before: /** This method does ...
* @throws IllegalArgumentException if `a` is less than 0. */
@throws(classOf[IllegalArgumentException])
def foo(a: Int) = ...
Now: /** This method does ... */
@throws[IllegalArgumentException]("if `a` is less than 0")
def foo(a: Int) = ...
ScalaDoc @throws tags remain supported for cases where documentation of
thrown exceptions is needed, but are not supposed to be added to the
exception attribute of the class file.
In this commit the necessary compiler support is added.
The code to extract exceptions from annotations is now shared instead
of being duplicated all over the place.
The change is completely source and binary compatible, except that the code
is now enforcing that the type thrown is a subtype of Throwable as mandated
by the JVM spec instead of allowing something like @throws(classOf[String]).
Not in this commit:
- ScalaDoc support to add the String argument to ScalaDoc's exception list
- Adaption of the library
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
More retrofit of doc model factory.
|
| | | | | | | | |
|
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
Typevar suspension
|