summaryrefslogtreecommitdiff
path: root/src/compiler
Commit message (Collapse)AuthorAgeFilesLines
* closes #3663.Adriaan Moors2010-08-133-18/+40
| | | | | | | | | | | | | | namers wasn't setting privateWithin on java-defined variables (btw, ) shouldn't clone carry over privateWithin? better treatment of linked ) class access boundary (only check for access within linked class if it ) actually exists ) would have liked more control for the test case: only javac should compile the java file, then scalac should compile the scala file and fail review by odersky
* closes #3419: test filesAdriaan Moors2010-08-131-0/+11
| | | | | | | | | | | | omit check that wouldn't work with separate compilation, not needed anymore because compiler has become more robust the actual fix was committed as part of r22512, see #3374 also see #3512 no review
* for MSIL: Previous changesets were applied more...Miguel Garcia2010-08-135-54/+181
| | | | | | | | | | for MSIL: Previous changesets were applied more-or-less incrementally to scala-msil, this changeset brings them all together to scala trunk. Next stop will be supporting CLR valuetypes (another big one). Afterwards (once emitted .NET bytecode passes peverify) changesets will become more manageable in size. Well, no, there's generics coming. But believe me, soon MSIL changesets will get smaller in size.
* [Scaladoc] Fixes a bug in defaultValues display...chrisJames2010-08-121-6/+9
| | | | | | [Scaladoc] Fixes a bug in defaultValues display ('new A' now creates a link on A). Review by dubochet
* [Scaladoc] Improve the documentation of primary...chrisJames2010-08-126-50/+119
| | | | | | | | | | | | [Scaladoc] Improve the documentation of primary constructor. Adds a @constructor for commenting the primary constructor. It also adds some comments for the primary constructor (@params, @deprecated) which are initialised in the class comment. Members that come from primary constructor parameters (val parameters or parameters of a case class) are listed as members with the comment given using the @param tag (closes #254, closes #577). Case class signature now begins by 'case class' instead of 'class'. Review by dubochet
* Fixed type soundness problem someone raised on ...Martin Odersky2010-08-121-46/+71
| | | | | | Fixed type soundness problem someone raised on hackers news. Test in override.scala. Review by moors.
* Changes in docs and layout. No review.Martin Odersky2010-08-121-3/+1
|
* Correct fix for see #3726.Lukas Rytz2010-08-111-0/+7
|
* different approach to manifests of type par...Adriaan Moors2010-08-102-17/+19
| | | | | | | | | different approach to manifests of type parameters: before, ambiguity was prevented by leaving type inference failures (Nothing was inferred) in the expression that needs an implicit manifest -- we now put these back in undetparams (maybe they will be inferred) and when we need to produce a manifest for an undetermined parameter (it ended up not being inferred), we assume it will get instantiated to Nothing (but for now don't actually reflect that in the SearchResult, as instantiate should take care of that anyway) see test file for use case that works with this new scheme, but did not work before: the eager instantiation of type params to Nothing before implicit search even got started would indeed prevent ambiguity -- unfortunately it also ruled out valid code like this (where the type parameter is inferred successfully by the time the manifest is needed) review by odersky
* closes #3676: cycle detection logic in BaseType...Adriaan Moors2010-08-101-41/+35
| | | | | | | | | | | closes #3676: cycle detection logic in BaseTypeSeq's should not overwrite elements in the BTS for cycle detection as these markers may be witnessed by callbacks in mergePrefixAndArgs now using a mutable bitset to keep track of which computations are pending -- benchmarked for speed, memory consumption not checked review by odersky
* Fixes #3728. No review.Martin Odersky2010-08-103-11/+19
|
* fix an msil bug (code gen of exception handlers).Lukas Rytz2010-08-101-0/+4
|
* An overhaul of checkSensible.Paul Phillips2010-08-101-40/+48
| | | | | | | | gives fewer insensible warnings about actually sensible things, etc. Large test case with 30 warnings elicited. Closes #282 (again), no review.
* close #7226.Lukas Rytz2010-08-091-2/+0
|
* closes #3582: typedTypeDef needs to run in a ne...Adriaan Moors2010-08-094-6/+16
| | | | | | | | | | | | | | | | | closes #3582: typedTypeDef needs to run in a new typer for TypeDefs with type parameters this was honored when typedTypeDef was called by typed1, but other callers did not this would cause higher-order type parameters to be re-entered in the scope of a method or a class (by the way, should we recycle scopes for higher-order type params? now new scopes are created, symbols entered, and tree's symbols updated) changed some spurious vars to vals review by odersky
* Modified r22702 to avoid tarring overloads with...Paul Phillips2010-08-071-6/+12
| | | | | | Modified r22702 to avoid tarring overloads with the same brush. No review.
* Disallowed super.XX calls to Any methods which ...Paul Phillips2010-08-071-5/+10
| | | | | | | | | | Disallowed super.XX calls to Any methods which are presently either crashing the compiler (isInstanceOf) or leading to runtime failure (== and !=) in addition to one which was being rewritten to a this call but makes more sense disallowed like the others (##). Closes #3736, review by odersky.
* close #2799.Lukas Rytz2010-08-061-0/+8
|
* close #3403.Lukas Rytz2010-08-061-1/+7
|
* fixes names/defaults when using :_* for specify...Lukas Rytz2010-08-052-14/+25
| | | | | | fixes names/defaults when using :_* for specifying repeated parameters. close #3697, no review.
* close #3667.Lukas Rytz2010-08-053-12/+16
| | | | | | | | | | | | | | | | | | | | | | | | | scala> def ser(o: AnyRef) = new java.io.ObjectOutputStream(new java.io.ByteArrayOutputStream()).writeObject(o) ser: (o: AnyRef)Unit scala> @serializable class Outer { | case class Inner(x: Int) | } defined class Outer scala> val o = new Outer o: Outer = Outer@34469729 scala> ser(new o.Inner(1)) scala> o.Inner // initialize the Inner$module field of o res1: o.Inner.type = Inner scala> ser(new o.Inner(1)) java.io.NotSerializableException: Outer$Inner$ review by extempore.
* Widened a try block to unregress the error mess...Paul Phillips2010-08-051-4/+6
| | | | | | Widened a try block to unregress the error message for file not found. Closes #3729, no review.
* close #3685. review by moors.Lukas Rytz2010-08-051-6/+21
|
* Keyword of method symbol signature is correctly...Gilles Dubochet2010-08-041-1/+1
| | | | | | Keyword of method symbol signature is correctly printed as 'def' instead of 'val'. No review.
* [Scaladoc]chrisJames2010-08-047-7/+187
| | | | | | Prints default Values, considers anyRef as a class. closes #3105. Review by prokopec.
* added @deprecatedName annotation, allowing to d...Lukas Rytz2010-08-034-2/+43
| | | | | | added @deprecatedName annotation, allowing to deprecate parameter names. review by prokopec.
* Parse ordering issue prevented passing properti...Paul Phillips2010-08-031-2/+2
| | | | | | | Parse ordering issue prevented passing properties containing a :. There is a test case included, but note that partest passes it with or without the patch: see ticket #3712. Closes #3495, no review.
* Fixed some typoes/errors in doc comments.Martin Odersky2010-08-021-1/+1
|
* Fixes an issue in RefChecks when the compiler d...Gilles Dubochet2010-07-301-2/+4
| | | | | | | Fixes an issue in RefChecks when the compiler does not have an erasure phase (such as in Scaladoc), which became visible after r22644. Review by odersky.
* Fixes #3679. Review by milessabin.Martin Odersky2010-07-281-1/+1
|
* [scaladoc] Small fixes for 2.8.0 updated docume...Gilles Dubochet2010-07-281-12/+4
| | | | | | | [scaladoc] Small fixes for 2.8.0 updated documentation: window title contains version number, authors are not displayed (like in Javadoc), source links have correct title. No review.
* [scaladoc] Setting for link to source URLs is m...Gilles Dubochet2010-07-272-2/+13
| | | | | | [scaladoc] Setting for link to source URLs is much more flexible and should allow satisfying Toni's exacting demands. Review by cunei.
* fixed case 2 (Android) in ticket #2464 (case 1 ...michelou2010-07-261-3/+38
| | | | | fixed case 2 (Android) in ticket #2464 (case 1 is ok with 2.8.0.final)
* generates CREATOR code for Android.michelou2010-07-231-163/+218
|
* Allow for overriding the debugIDE val (requeste...Hubert Plociniczak2010-07-221-1/+1
| | | | | Allow for overriding the debugIDE val (requested for ENSIME). No review.
* Revert 22605 change to JavaParsers.scala, which...Donna Malayeri2010-07-221-15/+4
| | | | | | | Revert 22605 change to JavaParsers.scala, which modified parsing behavior and broke jvm test t3415. No longer create DocDef nodes for Javadoc comments in Java source files. No review.
* [scaladoc] Fix performance problem when generat...Donna Malayeri2010-07-221-1/+1
| | | | | [scaladoc] Fix performance problem when generating Scaladoc.
* [scaladoc] Optionally run typer phase for Java ...Donna Malayeri2010-07-202-4/+9
| | | | | | [scaladoc] Optionally run typer phase for Java files, if createJavadoc method returns true. No review.
* [scaladoc] Don't generate documentation for emp...Donna Malayeri2010-07-201-4/+10
| | | | | | [scaladoc] Don't generate documentation for empty Java companion objects. No review.
* [scaladoc] Remove unused template.html file.Donna Malayeri2010-07-201-257/+0
|
* [scaladoc] Make a DocDef node for javadoc comme...Donna Malayeri2010-07-202-7/+18
| | | | | [scaladoc] Make a DocDef node for javadoc comments in Java source files.
* [scaladoc] Modify build script to copy html res...Donna Malayeri2010-07-207-97/+25
| | | | | | | [scaladoc] Modify build script to copy html resources to output directory; display template in a frame rather than an iframe; change title of main page when new frame is loaded. Review by dubochet.
* added missing file.Martin Odersky2010-07-191-0/+28
|
* [scaladoc] Singleton types (`this.type`) are co...Gilles Dubochet2010-07-191-1/+10
| | | | | | [scaladoc] Singleton types (`this.type`) are correctly printed. Closes #1445. Review by malayeri.
* Added `ask` method to compiler control to do fa...Martin Odersky2010-07-193-9/+34
| | | | | | Added `ask` method to compiler control to do fast trunaround computations on presentation compiler thread.
* [scaladoc] Fixes an issue whereas inherited mem...Gilles Dubochet2010-07-191-1/+5
| | | | | | [scaladoc] Fixes an issue whereas inherited members in objects would not see their types instantiated properly. No review.
* [scaladoc] Adds private Scaladoc option "-Yuse-...Gilles Dubochet2010-07-196-12/+36
| | | | | | [scaladoc] Adds private Scaladoc option "-Yuse-stupid-types" for LAMP internal use. No review.
* [scaladoc] Print "Inherited from" headings usin...Gilles Dubochet2010-07-183-16/+19
| | | | | | | [scaladoc] Print "Inherited from" headings using type instances ("SeqLike[A, List[A]]") instead of template names ("SeqLike"). Review by malayeri.
* [scaladoc] Scaladoc knows about Javadoc inline ...Gilles Dubochet2010-07-151-1/+18
| | | | | | | [scaladoc] Scaladoc knows about Javadoc inline tags and transforms them. The transformation is currently quite basic, particularly for links. Review by malayeri.
* [scaladoc] Full comments with "by inheritance" ...Gilles Dubochet2010-07-152-6/+3
| | | | | | [scaladoc] Full comments with "by inheritance" ordering are correctly displayed. No review.