summaryrefslogtreecommitdiff
path: root/test/files/run/reflection-fieldmirror-ctorparam.check
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2012-07-17 17:54:41 +0200
committerEugene Burmako <xeno.by@gmail.com>2012-07-19 21:58:57 +0200
commit911bbc4fdd889ea8a880b4ae47a490f64c54a2a9 (patch)
treef0b937a8f0eb5ee6da027ba100e4ec207a85009a /test/files/run/reflection-fieldmirror-ctorparam.check
parentbab827a5426aeb654006573712eb7aabc047db36 (diff)
downloadscala-911bbc4fdd889ea8a880b4ae47a490f64c54a2a9.tar.gz
scala-911bbc4fdd889ea8a880b4ae47a490f64c54a2a9.tar.bz2
scala-911bbc4fdd889ea8a880b4ae47a490f64c54a2a9.zip
SI-5984 improves error reporting in JavaMirrors
Factors out error raising code and introduces a special exception class for Scala reflection errors. Also adds membership sanity checks to reflectXXX. Previously reflectField, reflectMethod, reflectClass and reflectModule in InstanceMirror didn't check that the symbols being passed to them actually correspond to some member of the related class.
Diffstat (limited to 'test/files/run/reflection-fieldmirror-ctorparam.check')
-rw-r--r--test/files/run/reflection-fieldmirror-ctorparam.check2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/run/reflection-fieldmirror-ctorparam.check b/test/files/run/reflection-fieldmirror-ctorparam.check
index 7ae2cec81e..31f6491b14 100644
--- a/test/files/run/reflection-fieldmirror-ctorparam.check
+++ b/test/files/run/reflection-fieldmirror-ctorparam.check
@@ -1,3 +1,3 @@
-class java.lang.Error: this Scala field isn't represented as a Java field, neither it has a Java accessor method
+class scala.ScalaReflectionException: Scala field x isn't represented as a Java field, neither it has a Java accessor method
note that private parameters of class constructors don't get mapped onto fields and/or accessors,
unless they are used outside of their declaring constructors.