| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
Adding mirrors top connect reflection to something real without going
through Java.
|
|
|
|
|
| |
Fleshed out Scala -> Java mapping; dealing with arrays. No review.
|
|
|
|
|
| |
Fixed doc comments of the keys and values methods in MapLike. No review
|
|
|
|
|
| |
4th round of clean ups (see r25293, r25285, r25292)
|
|
|
|
|
|
| |
Fleshed out reflection that now also correctly interpretes Java classes.
We are getting there! No review; let's wait until it is complete.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When generating signatures, one must be careful finding the name of a
class, because sometimes things with a name like "Foo" need to appear in
signatures as "Foo$". I could really use some help establishing tests
here. Here's the diff of RedBlack's javap:
< const #81 = Asciz ()Lscala/collection/immutable/RedBlack<TA;>.Empty;;
---
> const #81 = Asciz ()Lscala/collection/immutable/RedBlack<TA;>.Empty$;;
RedBlack and RedBlack$Empty$ are the only classfiles in the library
outside of swing which are affected, which nicely explains their
frequent appearance in past tickets.
Review by grek.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I think it a reasonable goal that one should be able to do the following
and have some chance of seeing anomalies before firing up advanced text
processing tools:
scalac -Ylog:all a.scala
At least until/unless we have some way of generating output in between
"user-level visible warnings" and "notice of interest once you're
peeking under the hood." As a rule of thumb, any code which echoes a
thousand lines when compiling HelloWorld should be gently shoved into
debuglog. (Or anything which is sure to print for every classfile,
every method, etc. etc.) Especially, any code which is going to simply
reference Tuple2 and then echo a line for every specialized variation of
that class is being unreasonably taxed.
While I was quietizing, I changed various 'if (settings.debug.value)
log' usages to call debuglog. Hey everyone, you can do this without
penalty now, the inliner turns around and inlines the same code, and
it's so much less unsightly. No review.
|
|
|
|
|
|
|
| |
Refactored infoTransformer functionality from nsc.transform to
reflect.internal.transform. Needed so that we can find Java methods that
correspond to Scala methods. Review by extempore.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Modified erasure so we have enough information to determine whether we
need to use scala or java erasure semantics. This fixes the runtime
failure illustrated here:
% scala29 -e 'java.util.Collections.max(null)'
java.lang.NoSuchMethodError: java.util.Collections.max(Ljava/util/Collection;)Ljava/lang/Comparable;
Review by odersky.
|
|
|
|
|
|
|
|
| |
Fixed adriaan's patch for type constructor inference. The problem with
haranguing people in bars about bugs is that the fixes with which they
provide you may be flawed. Fortunately moors has this novelist on
retainer. Review by moors.
|
|
|
|
|
| |
Small babystep to show Scala -> Java mapping in reflection.
|
|
|
|
|
|
|
|
|
| |
Workaround for scalacheck calling System.exit during testing. Not sure
exactly what the sequence of events is here: I found the exit problem
months ago and committed code to scalacheck to make that configurable,
and then didn't see it again until recently, but I don't think it was
ever addressed. This is just a bandaid. No review.
|
|
|
|
|
|
| |
Brought scalacheck up to date with scalacheck trunk (rev 06612e965d) and
rebuilt jar against r25318, no review.
|
|
|
|
|
| |
Re-de-case-classed scala.xml.Text as described in r20450, no review.
|
|
|
|
|
| |
Contributed by Simon Ochsenreither.
|
|
|
|
|
|
| |
Reverting recent type constructor patch until I can see why scalacheck
is getting blinkered by it. No review.
|
|
|
|
|
| |
Authored by Chris League and Roland Kuhn
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
collection docs: fix copy-paste errors in GenTraversableOnce
In r24752, the documentation of reduce, reduceOption, fold, and
aggregate were copied verbatim from ParIterableLike to the new
GenTraversableOnceLike, and in r24786 they were brought along as
GenTraversableOnce replaced GenTraversableOnceLike. Some bits of what
they said were appropriate for ParIterableLike but are no longer
appropriate here.
Contributed by Greg Price.
|
| |
|
| |
|
|
|
|
|
| |
Contributed by josh marcus.
|
|
|
|
|
| |
Contributed by desterkin.
|
| |
|
|
|
|
|
|
|
| |
Fix Benchmark documentation to match current arguments.
Contributed by Josh Marcus.
|
|
|
|
|
|
|
|
| |
This gives a minimal introduction, and sets a number of macros so that
inherited documentation is clearer.
Contributed by Greg Price.
|
|
|
|
|
| |
Contributed by Daniel C. Sobral
|
| |
|
|
|
|
|
| |
Contributed by Marc Weil.
|
|
|
|
|
|
|
| |
Override TraversableLike.toIterator which uses unnecessary toStream.
Fixes SI-4802. Contributed by Yang Zhang.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixed a big bug in type constructor unification caused by considering
only the parents rather than all the base types. This fix is a testament
to the power of haranguing people in bars when you are deeply offended
by a bug, like someone was by this one:
def f[CC[X] <: Traversable[X]](x: CC[Int]) = ()
f(1 to 5) // did not compile! Fear not, it does now
Review by moors.
|
|
|
|
|
|
| |
A whole bunch of documentation on Trees, arrested in progress.
(Eventually should be reviewed but not yet so) no review.
|
|
|
|
|
|
|
| |
Beginning to document scala.util.continuations with a use case.
Authored by Chris League and Roland Kuhn.
|
| |
|
|
|
|
|
| |
DocSpree
|
|
|
|
|
|
|
|
| |
Additional documentation for the Array type, with short code examples of
construction, access and update. Also links to ArrayOps and WrappedArray
in order to explain where the additional collections operations come
from. Contributed by iainmcgin@gmail.com.
|
|
|
|
|
|
| |
Some minor scaladoc tweaks and deletion of incorrect scaladoc docs, no
review.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Changes to scaladoc include:
- fixed transformation of Code(text) into HTML tag <code> - added tool
tips for deprecated entities (classes, methods) using the 'title'
attribute - added syntax highlighting of Scala source code in generated
<pre> blocks (CSS colors are defined in lib/template.css)
Here are several examples of highlighted Scala code:
scala.App
scala.Application
scala.Enumeration
scala.Function1
scala.Function2
scala.native
scala.Option
scala.Proxy
scala.specialized
scala.throws
scala.unchecked
scala.actors.Actor
scala.annotation.deprecatedName
scala.annotation.elidable
scala.annotation.switch
scala.collection.DefaultMap
scala.collection.JavaConversions
scala.collection.JavaConverters
scala.collection.LinearSeqLike
scala.collection.MapLike
scala.collection.SetLike
scala.collection.TraversableLike
scala.collection.immutable.NumericRange
scala.collection.immutable.Range
scala.collection.immutable.Stream
scala.collection.mutable.BufferLike
scala.concurrent.pilib
scala.io.Position
scala.reflect.BeanProperty
scala.reflect.Manifest
scala.testing.Benchmark
scala.util.DynamicVariable
scala.util.control.Breaks
scala.util.control.ControlThrowable
scala.util.control.Exception
scala.util.control.TailCalls
scala.util.logging.Logged
scala.util.parsing.combinator.testing.Tester
scala.util.parsing.json.JSON
scala.util.regexp.WordExp
scala.xml.factory.LoggedNodeFactory
scala.xml.parsing.ConstructingParser
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Adding some Sets/Maps to perRunCaches, and eliminating ambiguously named
imports.
Did a tour of the compiler adding a few longer-lived mutable structures
to the per-run cache clearing mechanism. Some of these were not a big
threat, but there is (almost) literally no cost to tracking them and the
fewer mutable structures which are created "lone wolf style" the easier
it is to spot the one playing by his own rules.
While I was at it I followed through on long held ambition to eliminate
the importing of highly ambiguous names like "Map" and "HashSet" from
the mutable and immutable packages. I didn't quite manage elimination
but it's pretty close. Something potentially as pernicious which I
didn't do much about is this import:
import scala.collection._
Imagine coming across that one on lines 407 and 474 of a 1271 file.
That's not cool. Some poor future programmer will be on line 1100 and
use "Map[A, B]" in some function and only after the product has shipped
will it be discovered that the signature is wrong and the rocket will
now be crashing into the mountainside straightaway. No review.
|
|
|
|
|
| |
cleanups (scaladoc 2, deprecation warnings, trailing blanks)
|
|
|
|
|
|
|
|
| |
Fixed bug in printing of Char Constants logic
used by Tree printers.
Fixes #4792. No review.
|
|
|
|
|
|
|
|
| |
Implementation of Iterator.scala defined a structural type by mistake.
By naming a class we get rid of that structural type.
Fixes #4791. No review.
|
|
|
|
|
|
|
| |
prohibit case-to-case inheritance instead of issuing warning. closes
#4109. review by extempore, since it should make your life much easier
in the pattern matcher
|
|
|
|
|
|
| |
Don't enter into same line infinite recursion when erroneous code
involves a self-normalizing type alias. Closes #3240, review by moors.
|
|
|
|
|
|
| |
Restored partest behavior of keeping output directories when run with
debugging enabled. No review.
|
|
|
|
|
|
| |
Bounded wildcard types arising during pattern type inference can cause
unnecessary crashes. Closes #1048, review by odersky.
|
|
|
|
|
|
| |
Catch type projections even when they disguise themselves as stable via
singleton bounds. Closes #1431, review by odersky.
|