aboutsummaryrefslogtreecommitdiff
path: root/compiler
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #2259 from dotty-staging/fix-#2245Guillaume Martres2017-04-132-14/+6
|\ | | | | Fix #2245: strip colors from strings before writing to file
| * Fix #2245: strip colors from strings before writing to fileFelix Mulder2017-04-132-14/+6
| |
* | Merge branch 'master' into fix-2253liu fengyun2017-04-1313-43/+84
|\ \
| * \ Merge pull request #2256 from dotty-staging/fix-2254liu fengyun2017-04-131-2/+2
| |\ \ | | | | | | | | fix #2254: dealias types in decomposition of spaces
| * \ \ Merge pull request #2252 from dotty-staging/fix/npe-in-cleanup-hookNicolas Stucki2017-04-131-2/+3
| |\ \ \ | | | | | | | | | | Fix NPE when adding cleanup hook
| | * | | Fix NPE when adding cleanup hookFelix Mulder2017-04-131-2/+3
| | | |/ | | |/|
| * | | Merge pull request #2231 from dotty-staging/fix-#2230Guillaume Martres2017-04-131-0/+1
| |\ \ \ | | | | | | | | | | Fix #2230: Add regression test.
| | * | | Fix #2230: Add regression test.Nicolas Stucki2017-04-121-0/+1
| | | | |
| * | | | Merge pull request #2209 from dotty-staging/fix-#2152odersky2017-04-134-11/+17
| |\ \ \ \ | | |_|/ / | |/| | | Fix #2152: Instantiate dependent result type parameters
| | * | | Alternative fixMartin Odersky2017-04-111-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The original fix made run/hmap-covariant fail because a type variable representing a dependent result parameter was instantiated. Trying something else now.
| | * | | Fix #2152: Instantiate dependent result type parametersMartin Odersky2017-04-114-10/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | #2152 shows that dependent result type parameters can end up in the types of terms, so we have to eliminate them. If we don't we get orphan parameters in pickling. Fix method name and comment
| * | | | Merge pull request #2249 from dotty-staging/revert-productodersky2017-04-134-8/+7
| |\ \ \ \ | | | | | | | | | | | | Revert <: Product requierment in pattern matching
| | * | | | Revert <: Product requierment in pattern matchingOlivier Blanvillain2017-04-134-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The change in question broke the following pattern, commonly used in name based pattern matching: ```scala object ProdEmpty { def _1: Int = ??? def _2: String = ??? def isEmpty = true def get = this } ``` This type define both `_1` and `get` + `isEmpty` (but is not <: Product). After #1938, `ProdEmpty` became eligibles for both product and name based pattern. Because "in case of ambiguities, *Product Pattern* is preferred over *Name Based Pattern*", isEmpty wouldn't be used, breaking the scalac semantics.
| * | | | | Fix #2241: print failing test title instead of outdirFelix Mulder2017-04-131-1/+1
| | | | | |
| * | | | | Fix #2244: make sure logging goes through appropriate interfaceFelix Mulder2017-04-132-5/+18
| | | | | |
| * | | | | Fix #2242: let user know which file got logged toFelix Mulder2017-04-132-10/+29
| | | | | |
| * | | | | Fix #2243: improve failing test outputFelix Mulder2017-04-133-6/+8
| |/ / / /
| * | | | TestReporter: Avoid a global lazy valGuillaume Martres2017-04-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | When compiling with dotty, this leads to NullPointerException because the lazy val is not @volatile. Better to just make it a val.
* | | | | fix #2253: avoid exception with refinement typesliu fengyun2017-04-131-0/+1
| |_|_|/ |/| | |
* | | | fix #2254: dealias types in decomposition of spacesliu fengyun2017-04-131-2/+2
|/ / /
* | | Add docs to SummaryReport.scalaFelix Mulder2017-04-121-0/+25
| | |
* | | Remove duplication with run test output verificationFelix Mulder2017-04-121-19/+7
| | |
* | | Make vulpix test filter work on substring instead of regexpFelix Mulder2017-04-122-16/+17
| | |
* | | Remove need for java written summary reporterFelix Mulder2017-04-1210-205/+222
| | |
* | | Make sure that everything is dumped to log filesFelix Mulder2017-04-123-57/+120
| | |
* | | Add ability to only compile run testsFelix Mulder2017-04-124-16/+49
| | |
* | | Implement meta tests suggested by @DarkDimiusFelix Mulder2017-04-121-0/+15
| | | | | | | | | | | | | | | | | | Note that merging this as-is will not protect us against fork bombs. This is because the timeout of tests is currently 180 seconds. A forkbomb that is allowed to run for that long...
* | | Fix interactive mode in eclipseFelix Mulder2017-04-121-1/+3
| | |
* | | Add `Properties` object for dotty testing props and envFelix Mulder2017-04-124-14/+64
| | |
* | | Only complete tests after run has been performedFelix Mulder2017-04-121-24/+28
| | |
* | | Add vulpix docstrings and change definesFelix Mulder2017-04-123-4/+14
| | |
* | | Improve test failure outputFelix Mulder2017-04-121-1/+5
| | |
* | | Make inter JVM communication be string basedFelix Mulder2017-04-127-168/+133
| | |
* | | Move vulpix to `dotty.tools.vulpix`Felix Mulder2017-04-127-16/+13
| | |
* | | Rename filter shorthand to vulpix and update `drone.yml`Felix Mulder2017-04-121-4/+1
| | |
* | | Remove partest, keeping `dotc.tests` for nowFelix Mulder2017-04-126-697/+41
| | |
* | | Add `RunnerOrchestration` to `ParallelTesting` traitFelix Mulder2017-04-124-88/+149
| | |
* | | Complete subprocess communication protocolFelix Mulder2017-04-123-22/+64
| | |
* | | Fix settings having uninitialized valuesFelix Mulder2017-04-124-8/+20
| | |
* | | Implement inter-VM communication logicFelix Mulder2017-04-121-2/+44
| | |
* | | Add initial RunnerOrchestration interfaceFelix Mulder2017-04-122-0/+91
| | |
* | | Add cleanup hooks to SummaryReporterFelix Mulder2017-04-121-0/+21
| | |
* | | Add reproduction instr for pos separate compilationFelix Mulder2017-04-121-1/+3
| | |
* | | Rename test suite to "vulpix"Felix Mulder2017-04-126-11/+16
| | |
* | | Merge pull request #2229 from dotty-staging/sync-classfile-parserodersky2017-04-121-9/+25
|\ \ \ | |_|/ |/| | Port some ClassfileParser changes from scalac
| * | SI-9915 Utf8_info are modified UTF8Guillaume Martres2017-04-111-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | Adapted from scalac commit 3c5990ce5839f4bdfca8fed7f2c415a72f6a8bd8 by Som Snytt: Use DataInputStream.readUTF to read CONSTANT_Utf8_info. This fixes reading embedded null char and supplementary chars.
| * | SI-7455 Drop dummy param for synthetic access constructorGuillaume Martres2017-04-111-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adapted from scalac commit 050b4c951c838699c2fe30cbf01b63942c63a299 by Jason Zaugg: Java synthesizes public constructors in private classes to allow access from inner classes. The signature of that synthetic constructor (known as a "access constructor") has a dummy parameter appended to avoid overloading clashes. javac chooses the type "Enclosing$1" for the dummy parameter (called the "access constructor tag") which is either an existing anonymous class or a synthesized class for this purpose. In OpenJDK, this transformation is performed in: langtools/src/share/classes/com/sun/tools/javac/comp/Lower.java (Incidentally, scalac would just emits a byte-code public constructor in this situation, rather than a private constructor / access constructor pair.) Scala parses the signature of the access contructor, and drops the $outer parameter, but retains the dummy parameter. This causes havoc when it tries to parse the bytecode for that anonymous class; the class file parser doesn't have the enclosing type parameters of Vector in scope and crash ensues. In any case, we shouldn't allow user code to see that constructor; it should only be called from within its own compilation unit. This commit drops the dummy parameter from access constructor signatures in class file parsing.
| * | SI-2464 Resiliance against missing InnerClass attributesGuillaume Martres2017-04-111-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adapted from scalac commit 2a19cd56258884e25f26565d7b865cc2ec931b23 by Jason Zaugg, but without the testing infrastructure added: A classfile in the wild related to Vaadin lacked the InnerClasses attribute. As such, our class file parser treated a nested enum class as top-level, which led to a crash when trying to find its linked module. More details of the investigation are available in the JIRA comments. The test introduces a new facility to rewrite classfiles. This commit turns this situation into a logged warning, rather than crashing. Code by paulp, test by yours truly.
* | | Merge pull request #2225 from dotty-staging/fix-#2192odersky2017-04-111-26/+22
|\ \ \ | |/ / |/| | Fix #2212: Avoid imports in the wrong namespace
| * | Fix #2212: Avoid imports in the wrong namespaceMartin Odersky2017-04-111-26/+22
| | | | | | | | | | | | | | | | | | Don't issue an error if when considering a named import that refers to a valoe or type which does not exist. Instead, disregard the import an continue.