summaryrefslogtreecommitdiff
path: root/test/files/lib
Commit message (Collapse)AuthorAgeFilesLines
* evicts javac-artifacts.jarEugene Burmako2013-02-011-1/+0
| | | | | | Apparently, the usual _1, _2, _3... naming scheme also works for java files, which need to be compiled together with partests. This allows us to get rid of javac-artifacts.jar.
* SI-7008 @throws annotations are now populated in reflectEugene Burmako2013-02-011-1/+1
| | | | | | | | | | | | | | | | Runtime reflection in JavaMirrors previously forgot to fill in @throws when importing Java reflection artifacts. Now this is fixed. Note that generic exception types used in `throws` specifications will be garbled (i.e. erased), because we don't use `getGenericExceptionTypes` in favor of just `getExceptionTypes` to stay compatible with the behavior of ClassfileParser. That's a bug, but a separate one and should be fixed separately. Also note that this commit updated javac-artifacts.jar, because we need to test how reflection works with javac-produced classfiles. The sources that were used to produce those classfiles can be found in the jar next to the classfiles.
* SI-6548 reflection now correctly enters jinnersEugene Burmako2012-12-071-1/+1
| | | | | | | | | | | | | | | | | | | When completing Java classes, runtime reflection enumerates their fields, methods, constructors and inner classes, loads them and enters them into either the instance part (ClassSymbol) or the static part (ModuleSymbol). However unlike fields, methods and constructors, inner classes don't need to be entered explicitly - they are entered implicitly when being loaded. This patch fixes the double-enter problem, make sure that enter-on-load uses the correct owner, and also hardens jclassAsScala against double enters that can occur in a different scenario. Since the fix is about Java-compiled classes, the test needs *.class artifacts produced by javac. Therefore I updated javac-artifacts.jar to include the new artifacts along with their source code.
* refactors java reflection testsEugene Burmako2012-09-171-0/+1
| | | | All javac-produced artifacts are now placed into test/files/lib
* adds the sha1 files of the new starr / stringContext.fDominik Gruntz2012-07-066-6/+6
| | | | | | | | This commit provides the new sha1 codes of the new STARR. Moreover, it replaces the implementation of StringContext.f to `macro ???`. The implementation is magically hardwired into `scala.tools.reflect.MacroImplementations.macro_StringInterpolation_f` by the new STARR.
* Updated scalacheck sources.Paul Phillips2012-06-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | To current scalacheck head 7ffda752d8 except for this diff: diff -rw src/scalacheck/org/scalacheck/Arbitrary.scala /s/scalacheck/src/main/scala/org/scalacheck/Arbitrary.scala 13d12 < import scala.reflect.ClassTag 281c280 < implicit def arbArray[T](implicit a: Arbitrary[T], c: ClassTag[T] --- > implicit def arbArray[T](implicit a: Arbitrary[T], c: ClassManifest[T] diff -rw src/scalacheck/org/scalacheck/Prop.scala /s/scalacheck/src/main/scala/org/scalacheck/Prop.scala 63c63 < def mainCallsExit = false --- > def mainCallsExit = true Only in /s/scalacheck/src/main/scala/org/scalacheck: ScalaCheckFramework.scala diff -rw src/scalacheck/org/scalacheck/util/Buildable.scala /s/scalacheck/src/main/scala/org/scalacheck/util/Buildable.scala 13d12 < import scala.reflect.ClassTag 34c33 < implicit def buildableArray[T](implicit cm: ClassTag[T]) = --- > implicit def buildableArray[T](implicit cm: ClassManifest[T]) =
* Fixed scalacheck tests.Paul Phillips2012-02-041-1/+1
|
* Workaround for scalacheck calling System.exit d...Paul Phillips2011-07-181-1/+1
| | | | | | | | | 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 t...Paul Phillips2011-07-161-1/+1
| | | | | | Brought scalacheck up to date with scalacheck trunk (rev 06612e965d) and rebuilt jar against r25318, no review.
* introduce NullaryMethodType to disambiguate Pol...Adriaan Moors2011-01-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | introduce NullaryMethodType to disambiguate PolyType motivation: given `def foo[T]: (T, T)` and `type Foo[T] = (T, T)`, `foo.info` and `TypeRef(_, Foo, Nil).normalize` are both `PolyType(List(T), Pair[T, T])` uncurry has been relying on an ugly hack to distinguish these cases based on ad-hoc kind inference without this distinction, the type alias's info (a type function) would be transformed to `PolyType(List(T), MethodType(Nil, Pair[T, T]))` anonymous type functions are being used more often (see #2741, #4017, #4079, #3443, #3106), which makes a proper treatment of PolyTypes more pressing change to type representation: PolyType(Nil, tp) -> NullaryMethodType(tp) PolyType(tps, tp) -> PolyType(tps, NullaryMethodType(tp)) (if the polytype denoted a polymorphic nullary method) PolyType(Nil, tp) is now invalid the kind of a PolyType is * iff its resulttype is a NullaryMethodType or a MethodType (i.e., it's a polymorphic value) in all other cases a PolyType now denotes a type constructor NullaryMethodType is eliminated during uncurry pickling: for backwards compatibility, a NullaryMethodType(tp) is still pickled as a PolyType(Nil, tp), unpickling rewrites pre-2.9-pickled PolyTypes according to the expected kind of the unpickled type (similar to what we used to do in uncurry) a pickled PolyType(Nil, restpe) is unpickled to NullaryMethodType(restpe) a pickled PolyType(tps, restpe) is unpickled to PolyType(tps, NullaryMethodType(restpe)) when the type is expected to have kind * the rewrite probably isn't complete, but was validated by compiling against the old scalacheck jar (which has plenty of polymorphic nullary methods) nevertheless, this commit includes a new scalacheck jar summary of the refactoring: * PolyType(List(), tp) or PolyType(Nil, tp) or PolyType(parms, tp) if params.isEmpty ==> NullaryMethodType(tp) * whenever there was a case PolyType(tps, tp) (irrespective of tps isEmpty), now need to consider the case PolyType(tps, NullaryMethodType(tp)); just add a case NullaryMethodType(tp), since usually: - there already is a PolyType case that recurses on the result type, - the polytype case applied to empty and non-empty type parameter lists alike * tp.resultType, where tp was assumed to be a PolyType that represents a polymorphic nullary method type before, tp == PolyType(tps, res), now tp == PolyType(tps, NullaryMethodType(res)) * got bitten again (last time was dependent-method types refactoring) by a TypeMap not being the identity when dropNonConstraintAnnotations is true (despite having an identity apply method). Since asSeenFrom is skipped when isTrivial, the annotations aren't dropped. The cps plugin relies on asSeenFrom dropping these annotations for trivial types though. Therefore, NullaryMethodType pretends to never be trivial. Better fix(?) in AsSeenFromMap: `if(tp.isTrivial) dropNonContraintAnnotations(tp) else ...` TODO: scalap and eclipse review by odersky, rytz
* Added scalacheck tests for parallel collections.Aleksandar Pokopec2010-09-011-1/+1
| | | | | Review by phaller (not urgent).
* Rolled partest back to r21328.Paul Phillips2010-05-066-0/+6
| | | | | | | | changes necessary to plug it back in while preserving everything which has happened since then in tests and such, but we should be the lookout for overreversion. Review by phaller (but as a formality, I don't think it requires direct review.)
* If I work on this patch any longer without chec...Paul Phillips2010-04-056-6/+0
| | | | | | | | | | | | | | | | If I work on this patch any longer without checking in I will go stark raving mad. It is broken up into a couple pieces. This one is the changes to test/. It includes fixing a bunch of tests, removing deprecated constructs, moving jars used by tests to the most specific plausible location rather than having all jars on the classpath of all tests, and some filesystem layout change (continuations get their whole own srcpath.) This would be the world's most tedious review, so let's say no review. [Note: after this commit, I doubt things will build very smoothly until the rest of the partest changes follow. Which should only be seconds, but just in case.]
* TraversableOnce. Review by odersky.Paul Phillips2010-03-271-1/+1
|
* New scalacheck jar because recent Actor changes...Paul Phillips2010-03-251-1/+1
| | | | | | New scalacheck jar because recent Actor changes broke binary compatibility. No review.
* Updated scalacheck jar to current trunk.Paul Phillips2010-02-241-0/+1
| | | | | | | | | not being used. Updated partest with a --scalacheck option. Added scalacheck tests to the ant build target. Still struggling with ant/partest/classpaths so it's not on by default yet, but at least ./partest --scalacheck works. We... will... use... scalacheck. And we will like it! No review.
* Taking a stab at the cause of some nightly fail...Paul Phillips2009-09-241-1/+0
| | | | | Taking a stab at the cause of some nightly failures.
* Not sure why my jars are being viewed somewhere...Paul Phillips2009-09-171-1/+1
| | | | | | | Not sure why my jars are being viewed somewhere along the way as if textual data, and this is apparently causing breakage some places. One more try at uploading a jar.
* An enhanced scalacheck with new powers (includi...Paul Phillips2009-09-161-1/+1
| | | | | | | An enhanced scalacheck with new powers (including arbUnit, for all your arbitrary Unit needs) and some tests for recent Array-related crashers, including test case for the now working #2299.
* The first working scalacheck test! Now Arbitrar...Paul Phillips2009-09-161-1/+1
| | | | | | The first working scalacheck test! Now Arbitrary is working for us instead of our nemesis Capt. Entropy.
* Added jar for ScalaCheck tests.Philipp Haller2008-11-011-0/+1
|
* Fixed java version for enums.jarIulian Dragos2008-09-171-1/+1
|
* Fixed jar classfile versionIulian Dragos2008-09-131-1/+1
|
* Fixed #1329.Iulian Dragos2008-09-121-0/+1
|
* Fixed #1315, outer instances are passed implici...Iulian Dragos2008-09-012-1/+2
| | | | | | Fixed #1315, outer instances are passed implicitly. Reorganized nested classes tests.
* Reverted to target 1.5Iulian Dragos2008-08-191-1/+1
|
* Added test for inner classes.Iulian Dragos2008-08-191-1/+1
|
* Compiled nest.jar with JDK 1.4Philipp Haller2008-03-051-1/+1
|
* Adjusted package name in test, so that it integ...Philipp Haller2008-03-031-1/+1
| | | | | | Adjusted package name in test, so that it integrates easier with other tests.
* Updated annotations jar to contain 1.5-compatib...Iulian Dragos2007-10-101-1/+1
| | | | | Updated annotations jar to contain 1.5-compatible classfiles.
* (no commit message)Lex Spoon2007-10-101-1/+1
|
* Improved test case for annotations with array c...mihaylov2007-04-271-1/+1
| | | | | Improved test case for annotations with array constants
* (no commit message)Lex Spoon2007-04-201-0/+1
|
* Fixed a problem with the application of Java an...mihaylov2007-03-021-1/+1
| | | | | | Fixed a problem with the application of Java annotations with default values
* Fixed a name clash in the test suite (jvm/unitt...mihaylov2007-02-211-1/+1
| | | | | | Fixed a name clash in the test suite (jvm/unittest_io vs jvm5/attributes)
* Improved annotations testmihaylov2007-02-182-0/+2