aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * Annotations have JavaSeqLiterals inside.Dmitry Petrashko2014-11-221-1/+1
| |
| * Java annotations parsing problemDmitry Petrashko2014-11-221-1/+5
| | | | | | | | | | | | | | | | | | | | Annotations in java could be compiled as-if array-only annotation had <repeated> arguments constructor. That isn't true for scala. Also, type checking creation of single-element array requires implicit resolution to provide ClassTag. This makes problems while reading deferred annotation.
| * Extracting ApplyOverloaded to be reused in UnPickler and ClassfileParserDmitry Petrashko2014-11-224-16/+37
| |
| * AnnotationTransformer now also transforms typesDmitry Petrashko2014-11-222-4/+32
| | | | | | | | | | | | | | Required as gettersAndSetters ignores modifiers in tree and uses ones in the type instead. This means that gettersAndSetters carries over modifiers from type to tree and this one violates postconditions.
| * Extract AnnotationTransformer functionality from ElimRepeated to a traitDmitry Petrashko2014-11-222-37/+40
| | | | | | | | to be reused by FirstTransform
| * don't try to make a body for a setter of a Java fieldOndrej Lhotak2014-11-221-1/+1
| | | | | | | | | | | | | | | | transformSym explicitly checks that a field is JavaDefined and does not create a symbol for it. Creation of a setter body looks for the symbol and fails because it does not find it. We do not need setter bodies for Java fields because we are not generating bytecode for them.
| * create dummy first constructor for Java classesOndrej Lhotak2014-11-224-22/+26
| | | | | | | | | | | | The dummy constructor is needed so that the real constructors see the import of the companion object. The constructor has a parameter of type Unit so that no Java code can call it.
| * For Java constructors, do not move out to ctx.outerOndrej Lhotak2014-11-221-1/+4
| | | | | | | | A Java constructor needs to see the import of the companion object of the class. It is not necessary to move to an outer context because a Java constructor does not have an implementation. scalac also does it this way: see Namers.Namer.createNamer.isConstrParam.
| * make annotation classes abstract (since they are interfaces)Ondrej Lhotak2014-11-221-1/+1
| |
| * fix calls to tree copier that now requires multiple parameter listsOndrej Lhotak2014-11-221-2/+2
| |
| * Flags.Static renamed to JavaStaticOndrej Lhotak2014-11-221-8/+8
| |
| * remove debugging printlnOndrej Lhotak2014-11-221-3/+1
| |
| * add comment to explain why refctx passed explicitly to selectionTypeOndrej Lhotak2014-11-221-0/+2
| |
| * add comment explaining why checkValue skips Java compilation unitsOndrej Lhotak2014-11-221-0/+2
| |
| * add mapping ENUM -> Enum to PickleBufferOndrej Lhotak2014-11-221-1/+2
| |
| * make elimrepeated addVarArgsBridge at thisTransformer instead of ↵Ondrej Lhotak2014-11-221-1/+0
| | | | | | | | thisTransformer.next
| * support running java-interop testsOndrej Lhotak2014-11-2212-4/+11
| |
| * Java Select: try typing as both SelectFromTypeTree and SelectOndrej Lhotak2014-11-221-5/+36
| |
| * desugar Java repeated parms into an Array instead of SeqOndrej Lhotak2014-11-224-12/+14
| |
| * Initial implementation of Java scanner and parserOndrej Lhotak2014-11-229-204/+1794
| | | | | | | | | | | | | | | | | | | | | | | | | | Ported from scalac 2.11.x branch SHA 9753f23f9362b25a9f481b11dd8d51187187882a This is mostly a direct port, with few significant dotty-specific changes needed. The two more significant changes are: In dotty, the first constructor of a class is pulled out separately from the other stats in the Template. The keyword detection code (buildKeywordArray) was moved into Tokens so that it can more cleanly be shared by the Scala and Java scanners.
| * Show full name of doubly defined symbolsDmitry Petrashko2014-11-221-2/+2
| |
| * Allow checking that trees and their defined symbols have modifiers in sync.Dmitry Petrashko2014-11-222-2/+14
| |
| * #204 check for global uniqueness of definitions.Dmitry Petrashko2014-11-221-10/+19
| | | | | | | | | | Check now fails after erasure. Should become error after fixed.
| * Rename PolyType.copy method. It clashes with generated one.Dmitry Petrashko2014-11-222-3/+3
| | | | | | | | See #209 for explanation.
| * Fix ElimRepeated not transforming modifiers in tree.Dmitry Petrashko2014-11-222-3/+6
| |
| * Dotty typer deviation triggered in UnpicklerDmitry Petrashko2014-11-221-1/+2
| |
| * Infer if overloading resolution should trigger implicit search.Dmitry Petrashko2014-11-222-35/+30
| | | | | | | | This doesn't require additional argument. Decision can be made solely from the phaseId.
| * Fix StackOveflow due to implicit resolution in readAnnotationContentsDmitry Petrashko2014-11-221-1/+1
| |
| * Allow resolving overloads without inferring views.Dmitry Petrashko2014-11-221-2/+21
| |
| * readAnnotationContents that should be able to resolve overloaded constructors.Dmitry Petrashko2014-11-221-12/+36
| |
| * FunProtoTyped to be used when args are known to be typedDmitry Petrashko2014-11-221-0/+10
| |
| * Fix underlyingIfRepeated always assuming Scala repeated.Dmitry Petrashko2014-11-222-5/+9
| |
| * Fix TypeErasure.sigName erasing java repeated params to SeqDmitry Petrashko2014-11-221-1/+3
| |
| * Fix typeAssigner ignoring existence of JavaSeqLiteralDmitry Petrashko2014-11-222-7/+10
| |
| * Add Id's to types.Dmitry Petrashko2014-11-221-0/+9
| | | | | | | | Helps to track where erroneous type was created.
| * Fix elimRepeated not transforming annotations.Dmitry Petrashko2014-11-221-0/+29
| |
| * Testcase that shows bug in ElimRepeated.Dmitry Petrashko2014-11-221-0/+3
| |
| * Add the right constructor to Java annotationsMartin Odersky2014-11-224-2/+53
|/
* Merge pull request #236 from smarter/fix/overridingodersky2014-11-183-1/+22
|\ | | | | Add overriding tests
| * Add tests for the overriding of typesGuillaume Martres2014-11-183-1/+21
| | | | | | | | These tests work correctly since 222e9a478f7b851582550973df6a9d141766e49a
| * Enable pos/overrides.scala in testsGuillaume Martres2014-11-181-0/+1
|/
* Merge pull request #228 from dotty-staging/fix/overridingodersky2014-11-1814-77/+202
|\ | | | | Fix/overriding
| * Check that overriding members refine the types of overridden ones.Martin Odersky2014-11-185-22/+40
| | | | | | | | | | Somehow this was lost in porting (or was this done somewhere else in scalac?).
| * Fixes of reviewers comments.Martin Odersky2014-11-171-6/+2
| |
| * Some fixes to override checking in RefChecks.Martin Odersky2014-11-152-10/+13
| | | | | | | | `override` was not recognized at all on types.
| * Fixes for type argument handling.Martin Odersky2014-11-153-8/+13
| | | | | | | | | | | | | | (1) Type arguments now get a coordinate. (2) They are labeled Override (2) avoids having to special case TypeArgs in OverridingPairs.
| * Fine-tuning override errors for syntehtic companion objectsMartin Odersky2014-11-142-10/+16
| | | | | | | | | | | | | | These may raise real errors, so we cannot exclude them from overriding pairs a priori. But we can avoid reporting any errors if other override errors were reported previously for the same class.
| * Refactored OverridingPairsMartin Odersky2014-11-141-36/+43
| | | | | | | | to make it easier to understand.
| * Fix OverridingPairsMartin Odersky2014-11-149-20/+99
| | | | | | | | | | | | | | | | OverridingPairs had several bugs which caused pairs to be lost, which caused missing overrides checks. Fixing OverridingPairs revealed several test failures (and a problem in Synthetics generation which was fixed in the last commit). Tests that became negative are all moved into neg/overrides.scala, and the original versions in pos were fixed.
| * Refine merge of nullary and parameterless denotations.Martin Odersky2014-11-141-1/+12
| | | | | | | | | | | | | | | | | | | | Previously, two denotations with types => T and ()T could not be merged, only their types could be, but then the denotation would no longer be a SymDenotation. We now treat the two types as equivalent so that it will select the symbol in a subclass. This fixes a problem where, once overrding pairs are made to work (see following commit), in core/Types we get an error "overriding final method "hashCode".