mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-31 12:24:10 -08:00
Fix displaying diagnostics in out-of-process mode
This commit is contained in:
parent
3d96616761
commit
ca50f72fe9
|
@ -15,12 +15,13 @@
|
||||||
*/
|
*/
|
||||||
package org.teavm.model;
|
package org.teavm.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
public class MethodDescriptor {
|
public class MethodDescriptor implements Serializable {
|
||||||
private String name;
|
private String name;
|
||||||
private ValueType[] signature;
|
private ValueType[] signature;
|
||||||
private int hash;
|
private transient int hash;
|
||||||
|
|
||||||
public MethodDescriptor(String name, ValueType... signature) {
|
public MethodDescriptor(String name, ValueType... signature) {
|
||||||
if (signature.length < 1) {
|
if (signature.length < 1) {
|
||||||
|
|
|
@ -35,8 +35,8 @@ import java.util.stream.Stream;
|
||||||
*/
|
*/
|
||||||
public class MethodReference implements Serializable {
|
public class MethodReference implements Serializable {
|
||||||
private String className;
|
private String className;
|
||||||
private transient MethodDescriptor descriptor;
|
private MethodDescriptor descriptor;
|
||||||
private int hash;
|
private transient int hash;
|
||||||
|
|
||||||
public MethodReference(String className, MethodDescriptor descriptor) {
|
public MethodReference(String className, MethodDescriptor descriptor) {
|
||||||
this.className = className;
|
this.className = className;
|
||||||
|
|
|
@ -27,7 +27,7 @@ public abstract class ValueType implements Serializable {
|
||||||
|
|
||||||
public static class Object extends ValueType {
|
public static class Object extends ValueType {
|
||||||
private String className;
|
private String className;
|
||||||
private int hash;
|
private transient int hash;
|
||||||
|
|
||||||
public Object(String className) {
|
public Object(String className) {
|
||||||
this.className = className;
|
this.className = className;
|
||||||
|
@ -126,7 +126,7 @@ public abstract class ValueType implements Serializable {
|
||||||
|
|
||||||
public static class Array extends ValueType {
|
public static class Array extends ValueType {
|
||||||
private ValueType itemType;
|
private ValueType itemType;
|
||||||
private int hash;
|
private transient int hash;
|
||||||
|
|
||||||
public Array(ValueType itemType) {
|
public Array(ValueType itemType) {
|
||||||
this.itemType = itemType;
|
this.itemType = itemType;
|
||||||
|
|
|
@ -365,7 +365,7 @@ class JSClassProcessor {
|
||||||
boolean returnByRef = method.getAnnotations().get(JSByRef.class.getName()) != null;
|
boolean returnByRef = method.getAnnotations().get(JSByRef.class.getName()) != null;
|
||||||
if (returnByRef && !typeHelper.isSupportedByRefType(method.getResultType())) {
|
if (returnByRef && !typeHelper.isSupportedByRefType(method.getResultType())) {
|
||||||
diagnostics.error(callLocation, "Method {{m0}} is marked with @JSByRef, but does not return valid "
|
diagnostics.error(callLocation, "Method {{m0}} is marked with @JSByRef, but does not return valid "
|
||||||
+ "array type");
|
+ "array type", method.getReference());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user