aboutsummaryrefslogtreecommitdiff
path: root/src/stubs
diff options
context:
space:
mode:
Diffstat (limited to 'src/stubs')
-rw-r--r--src/stubs/com/sun/tools/javac/code/Symbol.java2
-rw-r--r--src/stubs/com/sun/tools/javac/main/Arguments.java3
-rw-r--r--src/stubs/com/sun/tools/javac/parser/JavaTokenizer.java17
3 files changed, 22 insertions, 0 deletions
diff --git a/src/stubs/com/sun/tools/javac/code/Symbol.java b/src/stubs/com/sun/tools/javac/code/Symbol.java
index 15b04148..f389f1a8 100644
--- a/src/stubs/com/sun/tools/javac/code/Symbol.java
+++ b/src/stubs/com/sun/tools/javac/code/Symbol.java
@@ -24,6 +24,7 @@ import com.sun.tools.javac.util.Name;
public abstract class Symbol implements Element {
public Type type;
public Name name;
+ public Symbol owner;
public long flags() { return 0; }
public boolean isStatic() { return false; }
@@ -62,6 +63,7 @@ public abstract class Symbol implements Element {
public static class VarSymbol extends Symbol implements VariableElement {
public Type type;
+ public int adr;
public VarSymbol(long flags, Name name, Type type, Symbol owner) {
}
@Override public ElementKind getKind() { return null; }
diff --git a/src/stubs/com/sun/tools/javac/main/Arguments.java b/src/stubs/com/sun/tools/javac/main/Arguments.java
index ea866b6e..3d91734c 100644
--- a/src/stubs/com/sun/tools/javac/main/Arguments.java
+++ b/src/stubs/com/sun/tools/javac/main/Arguments.java
@@ -10,4 +10,7 @@ public class Arguments {
public void init(String ownName, String... argv) {}
public Map<Option, String> getDeferredFileManagerOptions() { return null; }
public boolean validate() { return false; }
+
+ // JDK15
+ public void init(String ownName, Iterable<String> args) {}
}
diff --git a/src/stubs/com/sun/tools/javac/parser/JavaTokenizer.java b/src/stubs/com/sun/tools/javac/parser/JavaTokenizer.java
index 7d5bbcb1..cde6b325 100644
--- a/src/stubs/com/sun/tools/javac/parser/JavaTokenizer.java
+++ b/src/stubs/com/sun/tools/javac/parser/JavaTokenizer.java
@@ -1,11 +1,15 @@
package com.sun.tools.javac.parser;
+import java.nio.CharBuffer;
+
import com.sun.tools.javac.parser.Tokens.Comment;
import com.sun.tools.javac.parser.Tokens.Comment.CommentStyle;
public class JavaTokenizer {
+ // used before java 16
protected UnicodeReader reader;
+ // used before java 16
protected JavaTokenizer(ScannerFactory fac, UnicodeReader reader) {
}
@@ -16,4 +20,17 @@ public class JavaTokenizer {
protected Comment processComment(int pos, int endPos, CommentStyle style) {
return null;
}
+
+ // used in java 16
+ protected JavaTokenizer(ScannerFactory fac, char[] buf, int inputLength) {
+ }
+
+ // used in java 16
+ protected JavaTokenizer(ScannerFactory fac, CharBuffer buf) {
+ }
+
+ // introduced in java 16
+ protected int position() {
+ return -1;
+ }
}