Regenerate mockJDK using openJDK 7

This commit is contained in:
Denis Zharkov
2017-06-23 15:12:55 +03:00
parent 3158c71c29
commit bc564af2fc
68 changed files with 716 additions and 694 deletions
+5 -4
View File
@@ -1,15 +1,17 @@
<node text="Object (java.lang)">
<node text="Enum (java.lang)" base="true">
<node text="TimeUnit (java.util.concurrent)"/>
<node text="UnicodeScript in Character (java.lang)"/>
<node text="Category in Locale (java.util)"/>
<node text="UnicodeScript in Character (java.lang)"/>
<node text="Type in Cache in InetAddress (java.net)"/>
<node text="BaselineResizeBehavior in Component (java.awt)"/>
<node text="PathStatus in File (java.io)"/>
<node text="PrintMode in JTable (javax.swing)"/>
<node text="ElementType (java.lang.annotation)"/>
<node text="State in Thread (java.lang)"/>
<node text="RetentionPolicy (java.lang.annotation)"/>
<node text="Type in Window (java.awt)"/>
<node text="Kind in KParameter (kotlin.reflect)"/>
<node text="FileWalkDirection (kotlin.io)"/>
<node text="OnErrorAction (kotlin.io)"/>
<node text="RegexOption (kotlin.text)"/>
@@ -20,10 +22,9 @@
<node text="AnnotationTarget (kotlin.annotation)"/>
<node text="AnnotationRetention (kotlin.annotation)"/>
<node text="State (kotlin.collections)"/>
<node text="DeprecationLevel (kotlin)"/>
<node text="LazyThreadSafetyMode (kotlin)"/>
<node text="One ()"/>
<node text="G ()"/>
<node text="LazyThreadSafetyMode (kotlin)"/>
<node text="DeprecationLevel (kotlin)"/>
<node text="Kind in KParameter (kotlin.reflect)"/>
</node>
</node>
@@ -1,7 +1,7 @@
// INTENTION_TEXT: "Import members from 'javax.swing.SwingUtilities'"
// WITH_RUNTIME
// ERROR: None of the following functions can be called with the arguments supplied: <br>public open fun convertPoint(p0: Component!, p1: Point!, p2: Component!): Point! defined in javax.swing.SwingUtilities<br>public open fun convertPoint(p0: Component!, p1: Int, p2: Int, p3: Component!): Point! defined in javax.swing.SwingUtilities
// ERROR: None of the following functions can be called with the arguments supplied: <br>public open fun convertPoint(p0: Component!, p1: Point!, p2: Component!): Point! defined in javax.swing.SwingUtilities<br>public open fun convertPoint(p0: Component!, p1: Int, p2: Int, p3: Component!): Point! defined in javax.swing.SwingUtilities
// ERROR: None of the following functions can be called with the arguments supplied: <br>public open fun convertPoint(source: Component!, aPoint: Point!, destination: Component!): Point! defined in javax.swing.SwingUtilities<br>public open fun convertPoint(source: Component!, x: Int, y: Int, destination: Component!): Point! defined in javax.swing.SwingUtilities
// ERROR: None of the following functions can be called with the arguments supplied: <br>public open fun convertPoint(source: Component!, aPoint: Point!, destination: Component!): Point! defined in javax.swing.SwingUtilities<br>public open fun convertPoint(source: Component!, x: Int, y: Int, destination: Component!): Point! defined in javax.swing.SwingUtilities
// ERROR: Unresolved reference: unresolved
import javax.swing.SwingUtilities
@@ -1,7 +1,7 @@
// INTENTION_TEXT: "Import members from 'javax.swing.SwingUtilities'"
// WITH_RUNTIME
// ERROR: None of the following functions can be called with the arguments supplied: <br>public open fun convertPoint(p0: Component!, p1: Point!, p2: Component!): Point! defined in javax.swing.SwingUtilities<br>public open fun convertPoint(p0: Component!, p1: Int, p2: Int, p3: Component!): Point! defined in javax.swing.SwingUtilities
// ERROR: None of the following functions can be called with the arguments supplied: <br>public open fun convertPoint(p0: Component!, p1: Point!, p2: Component!): Point! defined in javax.swing.SwingUtilities<br>public open fun convertPoint(p0: Component!, p1: Int, p2: Int, p3: Component!): Point! defined in javax.swing.SwingUtilities
// ERROR: None of the following functions can be called with the arguments supplied: <br>public open fun convertPoint(source: Component!, aPoint: Point!, destination: Component!): Point! defined in javax.swing.SwingUtilities<br>public open fun convertPoint(source: Component!, x: Int, y: Int, destination: Component!): Point! defined in javax.swing.SwingUtilities
// ERROR: None of the following functions can be called with the arguments supplied: <br>public open fun convertPoint(source: Component!, aPoint: Point!, destination: Component!): Point! defined in javax.swing.SwingUtilities<br>public open fun convertPoint(source: Component!, x: Int, y: Int, destination: Component!): Point! defined in javax.swing.SwingUtilities
// ERROR: Unresolved reference: unresolved
import javax.swing.SwingUtilities
@@ -1,9 +1,9 @@
// WITH_RUNTIME
// IS_APPLICABLE: false
// ERROR: None of the following functions can be called with the arguments supplied: <br>public open fun max(p0: Double, p1: Double): Double defined in java.lang.Math<br>public open fun max(p0: Float, p1: Float): Float defined in java.lang.Math<br>public open fun max(p0: Int, p1: Int): Int defined in java.lang.Math<br>public open fun max(p0: Long, p1: Long): Long defined in java.lang.Math
// ERROR: None of the following functions can be called with the arguments supplied: <br>public open fun max(a: Double, b: Double): Double defined in java.lang.Math<br>public open fun max(a: Float, b: Float): Float defined in java.lang.Math<br>public open fun max(a: Int, b: Int): Int defined in java.lang.Math<br>public open fun max(a: Long, b: Long): Long defined in java.lang.Math
import java.lang.Math.max
fun foo() {
max(1.1, 1.2, 1.3)<caret>
}
}
@@ -1,9 +1,9 @@
// WITH_RUNTIME
// IS_APPLICABLE: false
// ERROR: None of the following functions can be called with the arguments supplied: <br>public open fun max(p0: Double, p1: Double): Double defined in java.lang.Math<br>public open fun max(p0: Float, p1: Float): Float defined in java.lang.Math<br>public open fun max(p0: Int, p1: Int): Int defined in java.lang.Math<br>public open fun max(p0: Long, p1: Long): Long defined in java.lang.Math
// ERROR: None of the following functions can be called with the arguments supplied: <br>public open fun max(a: Double, b: Double): Double defined in java.lang.Math<br>public open fun max(a: Float, b: Float): Float defined in java.lang.Math<br>public open fun max(a: Int, b: Int): Int defined in java.lang.Math<br>public open fun max(a: Long, b: Long): Long defined in java.lang.Math
import java.lang.Math.max
fun foo() {
max(1.1)<caret>
}
}
@@ -1,9 +1,9 @@
// WITH_RUNTIME
// IS_APPLICABLE: false
// ERROR: None of the following functions can be called with the arguments supplied: <br>public open fun min(p0: Double, p1: Double): Double defined in java.lang.Math<br>public open fun min(p0: Float, p1: Float): Float defined in java.lang.Math<br>public open fun min(p0: Int, p1: Int): Int defined in java.lang.Math<br>public open fun min(p0: Long, p1: Long): Long defined in java.lang.Math
// ERROR: None of the following functions can be called with the arguments supplied: <br>public open fun min(a: Double, b: Double): Double defined in java.lang.Math<br>public open fun min(a: Float, b: Float): Float defined in java.lang.Math<br>public open fun min(a: Int, b: Int): Int defined in java.lang.Math<br>public open fun min(a: Long, b: Long): Long defined in java.lang.Math
import java.lang.Math.min
fun foo() {
min(1.1, 1.2, 1.3)<caret>
}
}
@@ -1,9 +1,9 @@
// WITH_RUNTIME
// IS_APPLICABLE: false
// ERROR: None of the following functions can be called with the arguments supplied: <br>public open fun min(p0: Double, p1: Double): Double defined in java.lang.Math<br>public open fun min(p0: Float, p1: Float): Float defined in java.lang.Math<br>public open fun min(p0: Int, p1: Int): Int defined in java.lang.Math<br>public open fun min(p0: Long, p1: Long): Long defined in java.lang.Math
// ERROR: None of the following functions can be called with the arguments supplied: <br>public open fun min(a: Double, b: Double): Double defined in java.lang.Math<br>public open fun min(a: Float, b: Float): Float defined in java.lang.Math<br>public open fun min(a: Int, b: Int): Int defined in java.lang.Math<br>public open fun min(a: Long, b: Long): Long defined in java.lang.Math
import java.lang.Math.min
fun foo() {
min(1.1)<caret>
}
}
@@ -1,12 +1,9 @@
// WITH_RUNTIME
import java.io.File
lateinit var x: java.lang.Readable
val file = File(<caret>)
val file = x.read(<caret>)
/*
Text: (<highlight>File!</highlight>, String!), Disabled: false, Strikeout: false, Green: false
Text: (<highlight>String!</highlight>), Disabled: false, Strikeout: false, Green: false
Text: (<highlight>String!</highlight>, String!), Disabled: false, Strikeout: false, Green: false
Text: (<highlight>URI!</highlight>), Disabled: false, Strikeout: false, Green: false
*/
Text: (<highlight>CharBuffer!</highlight>), Disabled: false, Strikeout: false, Green: true
*/
@@ -1,6 +1,6 @@
// "Change function signature to 'fun next(p0: Int): Int'" "true"
// "Change function signature to 'fun next(bits: Int): Int'" "true"
import java.util.Random
class MyRandom : Random() {
<caret>override fun next(): Int = 4
}
}
@@ -1,6 +1,6 @@
// "Change function signature to 'fun next(p0: Int): Int'" "true"
// "Change function signature to 'fun next(bits: Int): Int'" "true"
import java.util.Random
class MyRandom : Random() {
<caret>override fun next(p0: Int): Int = 4
}
override fun next(bits: Int): Int = 4
}
@@ -2,4 +2,4 @@
import java.io.DataInputStream
import java.io.InputStream
class C(p0: InputStream?) : DataInputStream<caret>(p0)
class C(`in`: InputStream?) : DataInputStream(`in`)
@@ -2,4 +2,4 @@
// ACTION: Add constructor parameters from ArrayList(Int)
import java.util.ArrayList
class C(p0: MutableCollection<out String>?) : ArrayList<String><caret>(p0)
class C(c: MutableCollection<out String>?) : ArrayList<String>(c)
@@ -2,6 +2,6 @@
import java.util.ArrayList
fun f() {
val p0 = ArrayList<List<List<Int>>>(listOf())
val list: List<List<List<Int>>> = ArrayList(p0)
val c = ArrayList<List<List<Int>>>(listOf())
val list: List<List<List<Int>>> = ArrayList(c)
}
@@ -2,6 +2,6 @@
import java.util.ArrayList
fun f() {
val p0 = listOf<List<Int>>()
val v : List<List<Int>> = ArrayList(p0)
val c = listOf<List<Int>>()
val v : List<List<Int>> = ArrayList(c)
}
+5 -2
View File
@@ -1,3 +1,6 @@
val h = java.io.File(p<caret>0 = "")
lateinit var x: java.lang.Readable
lateinit var y: java.nio.CharBuffer
// REF: String var1
val h = x.read(p<caret>0 = y)
// REF: CharBuffer var1