Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 572274 - Compile error against Java 11 (javax.xml.bind)
Summary: Compile error against Java 11 (javax.xml.bind)
Status: RESOLVED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JAXB (show other bugs)
Version: 3.21 (2021-03)   Edit
Hardware: PC Mac OS X
: P3 blocker (vote)
Target Milestone: 3.22   Edit
Assignee: Nitin Dahyabhai CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-24 23:20 EDT by Nitin Dahyabhai CLA
Modified: 2021-06-16 00:20 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nitin Dahyabhai CLA 2021-03-24 23:20:17 EDT
It's unclear what's happening, as the plug-in refers to Java 1.8, which is still allowed on the system. Fix might be as simple as bumping the bundle up to 11.

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:2.2.0:compile (default-compile) on project org.eclipse.jpt.jaxb.core.schemagen: Compilation failure: Compilation failure: 
[ERROR] /home/jenkins/agent/workspace/webtools-dali_master/jaxb/plugins/org.eclipse.jpt.jaxb.core.schemagen/src/org/eclipse/jpt/jaxb/core/schemagen/Main.java:[22] 
[ERROR] 	import javax.xml.bind.SchemaOutputResolver;
[ERROR] 	       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The import javax.xml.bind.SchemaOutputResolver cannot be resolved
[ERROR] /home/jenkins/agent/workspace/webtools-dali_master/jaxb/plugins/org.eclipse.jpt.jaxb.core.schemagen/src/org/eclipse/jpt/jaxb/core/schemagen/Main.java:[99] 
[ERROR] 	jaxbContext = JAXBContext.newInstance(sourceClasses);
[ERROR] 	                          ^^^^^^^^^^^
[ERROR] The method newInstance(String) in the type JAXBContext is not applicable for the arguments (Class[])
[ERROR] /home/jenkins/agent/workspace/webtools-dali_master/jaxb/plugins/org.eclipse.jpt.jaxb.core.schemagen/src/org/eclipse/jpt/jaxb/core/schemagen/Main.java:[111] 
[ERROR] 	SchemaOutputResolver schemaOutputResolver = 
[ERROR] 	^^^^^^^^^^^^^^^^^^^^
[ERROR] SchemaOutputResolver cannot be resolved to a type
[ERROR] /home/jenkins/agent/workspace/webtools-dali_master/jaxb/plugins/org.eclipse.jpt.jaxb.core.schemagen/src/org/eclipse/jpt/jaxb/core/schemagen/Main.java:[214] 
[ERROR] 	class JptSchemaOutputResolver extends SchemaOutputResolver {
[ERROR] 	                                      ^^^^^^^^^^^^^^^^^^^^
[ERROR] SchemaOutputResolver cannot be resolved to a type
[ERROR] /home/jenkins/agent/workspace/webtools-dali_master/jaxb/plugins/org.eclipse.jpt.jaxb.core.schemagen/src/org/eclipse/jpt/jaxb/core/schemagen/Main.java:[227] 
[ERROR] 	public Result createOutput(String namespaceURI, String suggestedFileName) throws IOException {
[ERROR] 	              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The method createOutput(String, String) of type JptSchemaOutputResolver must override or implement a supertype method
[ERROR] 5 problems (5 errors)
[ERROR] -> [Help 1]
Comment 1 Nitin Dahyabhai CLA 2021-03-29 18:51:48 EDT
Removing reference to staging, as it's now also failing on the old JIPP.
Comment 2 Nitin Dahyabhai CLA 2021-03-31 16:57:35 EDT
Ok, it's definitely a change in how Tycho 2.1 and 2.2 handle BREEs. 2.2 is using the BREE from bundles that org.eclipse.jpt.jaxb.core.schemagen requires, which is 11.

org.eclipse.jpt.jaxb.core.schemagen needs to be updated to run in a Java 11 environment.
Comment 4 Nitin Dahyabhai CLA 2021-06-16 00:20:59 EDT
Fixed.