Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to compile project that depends on gwt-editor with j2cl #21

Open
vegegoku opened this issue Sep 28, 2021 · 0 comments
Open

Failed to compile project that depends on gwt-editor with j2cl #21

vegegoku opened this issue Sep 28, 2021 · 0 comments

Comments

@vegegoku
Copy link
Contributor

Compiling gwt-editors with j2cl will throw a lot of errors related to javax.validation

Error:Validation.java:20: The import java.io.BufferedReader cannot be resolved
Error:Validation.java:23: The import java.io.InputStreamReader cannot be resolved
Error:Validation.java:24: The import java.net cannot be resolved
Error:Validation.java:25: The import java.security.AccessController cannot be resolved
Error:Validation.java:26: The import java.security.PrivilegedAction cannot be resolved
Error:Validation.java:31: The import java.util.WeakHashMap cannot be resolved
Error:Validation.java:217: The method isAssignableFrom(Class<capture#1-of ? extends ValidationProvider>) is undefined for the type Class<U>
Error:Validation.java:218: The method cast(ValidationProvider) is undefined for the type Class<U>
Error:Validation.java:297: ClassLoader cannot be resolved to a type
Error:Validation.java:298: WeakHashMap cannot be resolved to a type
Error:Validation.java:298: ClassLoader cannot be resolved to a type
Error:Validation.java:303: ClassLoader cannot be resolved to a type
Error:Validation.java:303: The method fromContext() from the type Validation.GetClassLoader refers to the missing type ClassLoader
Error:Validation.java:305: The method fromClass(Class<?>) from the type Validation.GetClassLoader refers to the missing type ClassLoader
Error:Validation.java:309: ClassLoader cannot be resolved to a type
Error:Validation.java:310: ClassLoader cannot be resolved to a type
Error:Validation.java:317: URL cannot be resolved to a type
Error:Validation.java:319: URL cannot be resolved to a type
Error:Validation.java:322: BufferedReader cannot be resolved to a type
Error:Validation.java:322: InputStreamReader cannot be resolved to a type
Error:Validation.java:327: The method loadClass(String, Class<?>) from the type Validation.DefaultValidationProviderResolver refers to the missing type ClassNotFoundException
Error:Validation.java:333: The method newInstance() is undefined for the type Class<capture#7-of ?>
Error:Validation.java:347: ClassNotFoundException cannot be resolved to a type
Error:Validation.java:351: IllegalAccessException cannot be resolved to a type
Error:Validation.java:354: InstantiationException cannot be resolved to a type
Error:Validation.java:358: ClassLoader cannot be resolved to a type
Error:Validation.java:359: ClassLoader cannot be resolved to a type
Error:Validation.java:366: ClassNotFoundException cannot be resolved to a type
Error:Validation.java:369: ClassLoader cannot be resolved to a type
Error:Validation.java:369: The method fromContext() from the type Validation.GetClassLoader refers to the missing type ClassLoader
Error:Validation.java:374: ClassNotFoundException cannot be resolved to a type
Error:Validation.java:380: The method fromClass(Class<?>) from the type Validation.GetClassLoader refers to the missing type ClassLoader
Error:Validation.java:384: PrivilegedAction cannot be resolved to a type
Error:Validation.java:384: ClassLoader cannot be resolved to a type
Error:Validation.java:387: ClassLoader cannot be resolved to a type
Error:Validation.java:389: The method getSecurityManager() is undefined for the type System
Error:Validation.java:390: AccessController cannot be resolved
Error:Validation.java:393: The method run() from the type Validation.GetClassLoader refers to the missing type ClassLoader
Error:Validation.java:397: ClassLoader cannot be resolved to a type
Error:Validation.java:402: The method getSecurityManager() is undefined for the type System
Error:Validation.java:403: AccessController cannot be resolved
Error:Validation.java:406: The method run() from the type Validation.GetClassLoader refers to the missing type ClassLoader
Error:Validation.java:414: ClassLoader cannot be resolved to a type
Error:Validation.java:416: The method getClassLoader() is undefined for the type Class<capture#15-of ?>
Error:Validation.java:419: Thread cannot be resolved
Error:Pattern.java:77: java.util.regex cannot be resolved to a variable
Error:Pattern.java:83: java.util.regex cannot be resolved to a variable
Error:Pattern.java:89: java.util.regex cannot be resolved to a variable
Error:Pattern.java:95: java.util.regex cannot be resolved to a variable
Error:Pattern.java:101: java.util.regex cannot be resolved to a variable
Error:Pattern.java:107: java.util.regex cannot be resolved to a variable
Error:Pattern.java:113: java.util.regex cannot be resolved to a variable

The respository here has a sample to reproduce the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant