summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert.plociniczak@epfl.ch>2010-09-29 09:47:54 +0000
committerHubert Plociniczak <hubert.plociniczak@epfl.ch>2010-09-29 09:47:54 +0000
commite1eb91714d2129ea460e8c4da4ff65074acb736a (patch)
treeaf7ed3198bf5f2dcf0e35f8a18da03e77767ec9c /test
parentc0cc1dda85480c91df908d89d5d10c2293a03961 (diff)
downloadscala-e1eb91714d2129ea460e8c4da4ff65074acb736a.tar.gz
scala-e1eb91714d2129ea460e8c4da4ff65074acb736a.tar.bz2
scala-e1eb91714d2129ea460e8c4da4ff65074acb736a.zip
Revert changes related to #1591. no review.
Diffstat (limited to 'test')
-rw-r--r--test/files/jvm/serialization.scala26
-rw-r--r--test/files/pos/t1591_pos.scala7
-rw-r--r--test/files/run/t1591.check1
-rw-r--r--test/files/run/t1591.scala14
4 files changed, 0 insertions, 48 deletions
diff --git a/test/files/jvm/serialization.scala b/test/files/jvm/serialization.scala
index b8656888c6..06086f4038 100644
--- a/test/files/jvm/serialization.scala
+++ b/test/files/jvm/serialization.scala
@@ -532,31 +532,6 @@ object Test6 {
}
//############################################################################
-// Nested objects cannot get readresolve automatically because after deserialization
-// they would be null (they are treated as lazy vals)
-@serializable
-class Outer {
-
- @serializable
- object Inner
-}
-
-object Test7 {
- val x = new Outer
- x.Inner // initialize
- try {
- val y:Outer = read(write(x))
- if (y.Inner == null)
- println("Inner object is null")
- }
- catch {
- case e: Exception =>
- println("Error in Test7: " + e)
- }
-
-}
-
-//############################################################################
// Test code
object Test {
@@ -567,7 +542,6 @@ object Test {
Test4_xml
Test5
Test6
- Test7
}
}
diff --git a/test/files/pos/t1591_pos.scala b/test/files/pos/t1591_pos.scala
deleted file mode 100644
index 4f55d7ce19..0000000000
--- a/test/files/pos/t1591_pos.scala
+++ /dev/null
@@ -1,7 +0,0 @@
-trait A
-
-object Test {
- lazy val a = new A {
- object Zenek
- }
-}
diff --git a/test/files/run/t1591.check b/test/files/run/t1591.check
deleted file mode 100644
index 48082f72f0..0000000000
--- a/test/files/run/t1591.check
+++ /dev/null
@@ -1 +0,0 @@
-12
diff --git a/test/files/run/t1591.scala b/test/files/run/t1591.scala
deleted file mode 100644
index 434064a5dd..0000000000
--- a/test/files/run/t1591.scala
+++ /dev/null
@@ -1,14 +0,0 @@
-abstract class A {
-
- lazy val lazyBar = bar
-
- object bar {
- val foo = 12
- }
-
-}
-
-object Test extends Application {
- val a = new A{}
- println(a.lazyBar.foo)
-}