Skip to content

Instantly share code, notes, and snippets.

@DmytroMitin
Last active April 4, 2019 22:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DmytroMitin/7d7e67274061f90572d63672e67e09e6 to your computer and use it in GitHub Desktop.
Save DmytroMitin/7d7e67274061f90572d63672e67e09e6 to your computer and use it in GitHub Desktop.
sbt.version = 1.2.8
name := "scalajava"
version := "0.1"
scalaVersion := "2.12.8"
import com.sun.org.apache.xpath.internal.XPathContext
class CallImpl extends CallInterface {
// override def call(context: String, arguments: Array[Sequence[_ <: Item[_ <: Item[_]]]]): Sequence[_ <: Item[_ <: Item[_]]] = ???
override def call(context: XPathContext, arguments: Array[Sequence[_ <: Item[_]]]): Sequence[_] = ???
}
import com.sun.org.apache.xpath.internal.XPathContext;
public interface CallInterface {
Sequence<?> call(XPathContext context, Sequence[] arguments);
}
dmitin@dmitin-HP-Pavilion-Laptop:/media/data/Projects/scalajava$ sbt compile
[info] Loading settings for project global-plugins from idea.sbt ...
[info] Loading global plugins from /home/dmitin/.sbt/1.0/plugins
[info] Loading project definition from /media/data/Projects/scalajava/project
[info] Loading settings for project scalajava from build.sbt ...
[info] Set current project to scalajava (in build file:/media/data/Projects/scalajava/)
[info] Executing in batch mode. For better performance use sbt's shell
[info] Compiling 1 Scala source and 3 Java sources to /media/data/Projects/scalajava/target/scala-2.12/classes ...
[warn] /media/data/Projects/scalajava/src/main/java/CallInterface.java:1:1: com.sun.org.apache.xpath.internal.XPathContext is internal proprietary API and may be removed in a future release
[warn] import com.sun.org.apache.xpath.internal.XPathContext;
[warn] /media/data/Projects/scalajava/src/main/java/CallInterface.java:4:1: com.sun.org.apache.xpath.internal.XPathContext is internal proprietary API and may be removed in a future release
[warn] Sequence<?> call(XPathContext context, Sequence[] arguments);
[info] Done compiling.
[success] Total time: 3 s, completed 05.04.2019 1:24:42
public interface Item<T extends Item<?>> {
}
public interface Sequence<T extends Item<?>> {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment