Comments (4)
Hi,
When I use this package with jdk 10, it fails to compile. And it seems to me that some of the implementation in this package may not compatible with jdk 10.
Below are my suggestion so as to make it compatible with jdk 10.
I also show my maven pom.xml for build jaxb-visitor
VisitorPlugin.java
import com.sun.tools.xjc.model.Aspect; -> import com.sun.tools.xjc.outline.Aspect;
CodeCreator.java
import javax.annotation.Generated; -> import javax.annotation.processing.Generated;
from jaxb-visitor.
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.massfords</groupId> <artifactId>jaxb-visitor</artifactId> <name>JAXB Visitor Plugin</name> <version>2.8-SNAPSHOT</version> <description>XJC plugin that adds the Visitor pattern to JAXB generated classes. Generates a simple Visitor interface as well as separate Traverser and sample implementations to perform depth first traversals of JAXB graphs. </description> <url>https://github.com/massfords/jaxb-visitor</url> <licenses> <license> <name>The Apache Software License, Version 2.0</name> <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> <distribution>repo</distribution> <comments>A business-friendly OSS license</comments> </license> </licenses> <scm> <url>https://github.com/massfords/jaxb-visitor</url> <connection>scm:git:git://github.com/massfords/jaxb-visitor.git</connection> <developerConnection>scm:git:[email protected]:massfords/jaxb-visitor.git</developerConnection> <tag>jaxb-visitor-2.6</tag> </scm> <distributionManagement> <snapshotRepository> <id>ossrh</id> <url>https://oss.sonatype.org/content/repositories/snapshots</url> </snapshotRepository> <repository> <id>ossrh</id> <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> </repository> </distributionManagement> <developers> <developer> <id>mark</id> <name>Mark Ford</name> <email>[email protected]</email> <url>www.massfords.com</url> </developer> </developers> <build> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <source>10</source> <target>10</target> </configuration> </plugin> <plugin> <groupId>org.sonatype.plugins</groupId> <artifactId>nexus-staging-maven-plugin</artifactId> <version>1.6.2</version> <extensions>true</extensions> <configuration> <serverId>ossrh</serverId> <nexusUrl>https://oss.sonatype.org/</nexusUrl> <autoReleaseAfterClose>true</autoReleaseAfterClose> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> <version>2.5</version> <configuration> <autoVersionSubmodules>true</autoVersionSubmodules> <useReleaseProfile>false</useReleaseProfile> <releaseProfiles>release</releaseProfiles> <goals>deploy</goals> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>2.2.1</version> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar-no-fork</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>9</source> <target>9</target> </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId> <version>2.4.0-b180725.0427</version> </dependency> <dependency> <groupId>org.glassfish.jaxb</groupId> <artifactId>codemodel</artifactId> <version>2.3.0.1</version> </dependency> <dependency> <groupId>org.glassfish.jaxb</groupId> <artifactId>jaxb-xjc</artifactId> <version>2.3.0.1</version> </dependency> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-artifact</artifactId> <version>3.5.4</version> <scope>test</scope> </dependency> <dependency> <groupId>org.jvnet.jaxb2.maven2</groupId> <artifactId>maven-jaxb2-plugin-testing</artifactId> <version>0.12.3</version> <scope>test</scope> <exclusions> <exclusion> <groupId>org.apache.maven</groupId> <artifactId>maven-artifact</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>1.4</version> <scope>test</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scope> </dependency> </dependencies> <profiles> <profile> <id>release</id> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>2.10.4</version> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <version>1.6</version> <executions> <execution> <id>sign-artifacts</id> <phase>verify</phase> <goals> <goal>sign</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> </project>
from jaxb-visitor.
Aspect
change is the same as #18
from jaxb-visitor.
should run on 10 now.
from jaxb-visitor.
Related Issues (16)
- Problems with TraversingVisitor implementation for custom classes HOT 4
- Typed IDREF(S) properties lead to Compile Errors
- Limit Visitor to a Particaular type HOT 5
- DepthFirstTraverserImpl follows IDREFS
- jaxb-visitor is not compatible with maven-jaxb2-plugin 0.14.0 HOT 4
- visitor / depth first trasverser with custom class bindings HOT 16
- update to the latest maven testing framework HOT 1
- allow option to only emit interfaces only HOT 1
- support both Jakarta and JDK 8 style dependencies
- NullPointerException when running visitor plugin HOT 4
- add support for a param for visit and traverse generation
- some Jakarta namespaces aren't being checked for legacy flag
- Duplicate methods in visitor HOT 6
- NPE in `ClassDiscoverer::handleXmlElement` HOT 4
- Possible issue with generated DepthFirstSearchTraverserImpl? HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jaxb-visitor.