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
@@ -1,5 +1,5 @@
fun foo(): java.util.Calendar = get<caret>
// EXIST_JAVA_ONLY: { lookupString:"getInstance", itemText:"Calendar.getInstance", tailText:"() (java.util)", typeText:"Calendar!" }
// EXIST_JAVA_ONLY: { lookupString:"getInstance", itemText:"Calendar.getInstance", tailText:"(TimeZone!) (java.util)", typeText:"Calendar!" }
// EXIST_JAVA_ONLY: { lookupString:"getInstance", itemText:"Calendar.getInstance", tailText:"(TimeZone!, Locale!) (java.util)", typeText:"Calendar!" }
// EXIST_JAVA_ONLY: { lookupString:"getInstance", itemText:"Calendar.getInstance", tailText:"(zone: TimeZone!) (java.util)", typeText:"Calendar!" }
// EXIST_JAVA_ONLY: { lookupString:"getInstance", itemText:"Calendar.getInstance", tailText:"(zone: TimeZone!, aLocale: Locale!) (java.util)", typeText:"Calendar!" }
@@ -1,5 +1,5 @@
fun foo(): java.util.Calendar = Ca<caret>
// EXIST_JAVA_ONLY: { lookupString:"getInstance", itemText:"Calendar.getInstance", tailText:"() (java.util)", typeText:"Calendar!" }
// EXIST_JAVA_ONLY: { lookupString:"getInstance", itemText:"Calendar.getInstance", tailText:"(TimeZone!) (java.util)", typeText:"Calendar!" }
// EXIST_JAVA_ONLY: { lookupString:"getInstance", itemText:"Calendar.getInstance", tailText:"(TimeZone!, Locale!) (java.util)", typeText:"Calendar!" }
// EXIST_JAVA_ONLY: { lookupString:"getInstance", itemText:"Calendar.getInstance", tailText:"(zone: TimeZone!) (java.util)", typeText:"Calendar!" }
// EXIST_JAVA_ONLY: { lookupString:"getInstance", itemText:"Calendar.getInstance", tailText:"(zone: TimeZone!, aLocale: Locale!) (java.util)", typeText:"Calendar!" }
@@ -3,7 +3,7 @@ fun foo() {
}
// INVOCATION_COUNT: 2
// EXIST_JAVA_ONLY: { allLookupStrings: "invokeLater", itemText: "SwingUtilities.invokeLater", tailText: "(Runnable!) (javax.swing)", typeText: "Unit", attributes: "" }
// EXIST_JAVA_ONLY: { allLookupStrings: "invokeAndWait", itemText: "SwingUtilities.invokeAndWait", tailText: "(Runnable!) (javax.swing)", typeText: "Unit", attributes: "" }
// EXIST_JAVA_ONLY: { allLookupStrings: "invokeLater", itemText: "SwingUtilities.invokeLater", tailText: " {...} ((() -> Unit)!) (javax.swing)", typeText: "Unit", attributes: "" }
// EXIST_JAVA_ONLY: { allLookupStrings: "invokeLater", itemText: "SwingUtilities.invokeLater", tailText: "(doRun: Runnable!) (javax.swing)", typeText: "Unit", attributes: "" }
// EXIST_JAVA_ONLY: { allLookupStrings: "invokeAndWait", itemText: "SwingUtilities.invokeAndWait", tailText: "(doRun: Runnable!) (javax.swing)", typeText: "Unit", attributes: "" }
// EXIST_JAVA_ONLY: { allLookupStrings: "invokeLater", itemText: "SwingUtilities.invokeLater", tailText: " {...} (doRun: (() -> Unit)!) (javax.swing)", typeText: "Unit", attributes: "" }
// ABSENT: { itemText: "SwingUtilities.installSwingDropTargetAsNecessary" }
@@ -5,6 +5,6 @@ fun foo() {
}
// INVOCATION_COUNT: 1
// EXIST_JAVA_ONLY: { allLookupStrings: "singleton", itemText: "Collections.singleton", tailText: "(T!) (java.util)", typeText: "(Mutable)Set<T!>!", attributes: "" }
// EXIST_JAVA_ONLY: { allLookupStrings: "singleton", itemText: "Collections.singleton", tailText: "(o: T!) (java.util)", typeText: "(Mutable)Set<T!>!", attributes: "" }
// ABSENT: { itemText: "Collections.singletonList" }
// EXIST_JAVA_ONLY: { itemText: "singletonList", tailText: "(T!)", typeText: "(Mutable)List<T!>!", attributes: "" }
// EXIST_JAVA_ONLY: { itemText: "singletonList", tailText: "(o: T!)", typeText: "(Mutable)List<T!>!", attributes: "" }
@@ -2,5 +2,5 @@ fun foo() {
javax.swing.SwingUtilities.invoke<caret>
}
// EXIST: { lookupString: "invokeLater", itemText: "invokeLater", tailText: "(Runnable!)", typeText: "Unit" }
// EXIST: { lookupString: "invokeLater", itemText: "invokeLater", tailText: " {...} ((() -> Unit)!)", typeText: "Unit" }
// EXIST: { lookupString: "invokeLater", itemText: "invokeLater", tailText: "(doRun: Runnable!)", typeText: "Unit" }
// EXIST: { lookupString: "invokeLater", itemText: "invokeLater", tailText: " {...} (doRun: (() -> Unit)!)", typeText: "Unit" }
@@ -6,4 +6,4 @@ fun foo() {
// INVOCATION_COUNT: 1
// ELEMENT_TEXT: "SwingUtilities.invokeAndWait"
// TAIL_TEXT: " {...} ((() -> Unit)!) (javax.swing)"
// TAIL_TEXT: " {...} (doRun: (() -> Unit)!) (javax.swing)"
@@ -7,4 +7,4 @@ fun foo() {
// INVOCATION_COUNT: 1
// ELEMENT_TEXT: "SwingUtilities.invokeAndWait"
// TAIL_TEXT: " {...} ((() -> Unit)!) (javax.swing)"
// TAIL_TEXT: " {...} (doRun: (() -> Unit)!) (javax.swing)"
@@ -4,4 +4,4 @@ fun foo() {
// INVOCATION_COUNT: 2
// ELEMENT_TEXT: "SwingUtilities.invokeLater"
// TAIL_TEXT: "(Runnable!) (javax.swing)"
// TAIL_TEXT: "(doRun: Runnable!) (javax.swing)"
@@ -6,4 +6,4 @@ fun foo() {
// INVOCATION_COUNT: 2
// ELEMENT_TEXT: "SwingUtilities.invokeLater"
// TAIL_TEXT: "(Runnable!) (javax.swing)"
// TAIL_TEXT: "(doRun: Runnable!) (javax.swing)"
@@ -3,4 +3,4 @@ fun foo(){
}
// ELEMENT_TEXT: "Calendar.getInstance"
// TAIL_TEXT: "(TimeZone!) (java.util)"
// TAIL_TEXT: "(zone: TimeZone!) (java.util)"
@@ -5,4 +5,4 @@ fun foo(){
}
// ELEMENT_TEXT: "Calendar.getInstance"
// TAIL_TEXT: "(TimeZone!) (java.util)"
// TAIL_TEXT: "(zone: TimeZone!) (java.util)"
+2 -2
View File
@@ -3,5 +3,5 @@ fun foo(){
}
// EXIST: { lookupString:"getInstance", itemText:"Calendar.getInstance", tailText:"() (java.util)", typeText:"Calendar!", attributes:"" }
// EXIST: { lookupString:"getInstance", itemText:"Calendar.getInstance", tailText:"(TimeZone!) (java.util)", typeText:"Calendar!", attributes:"" }
// EXIST: { lookupString:"getInstance", itemText:"Calendar.getInstance", tailText:"(TimeZone!, Locale!) (java.util)", typeText:"Calendar!", attributes:"" }
// EXIST: { lookupString:"getInstance", itemText:"Calendar.getInstance", tailText:"(aLocale: Locale!) (java.util)", typeText:"Calendar!", attributes:"" }
// EXIST: { lookupString:"getInstance", itemText:"Calendar.getInstance", tailText:"(zone: TimeZone!, aLocale: Locale!) (java.util)", typeText:"Calendar!", attributes:"" }
@@ -7,4 +7,4 @@ fun g(zone: java.util.TimeZone) {
zone.setID(x<caret>)
}
// ORDER: xLocal, xId, xP, xP1
// ORDER: xId, xLocal, xP, xP1
+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