GithubHelp home page GithubHelp logo

jaxb-utilities's Introduction

๐Ÿ‘‹

I'm a front-end developer at Upstock; writer and baker (and a whole host of other things I've failed to list) in my spare time, based in the tiny little country of New Zealand.

I'm a computer programmer by trade; my career having started in server-side Java development, though I now spend my days with everything HTML, CSS, and JavaScript.

I also do a bit of coding in my spare time, including a classic Command & Conquer remake project written in Groovy, occassional contributions to the Thymeleaf project, and a whole host of smaller projects, all of which you can find on my GitHub profile which you're probably looking at right now!

jaxb-utilities's People

Contributors

davidkarlsen avatar ultraq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

jaxb-utilities's Issues

Stop throwing XMLExceptions all over the place

When this project was written in Java, it was to wrap all of the checked exceptions with runtime exceptions (I'm not a fan of checked exceptions) so that the consumer wasn't forced to add those things to their own method signatures if they don't want to.

Now that this project is written in Groovy (and Groovy thankfully also hates checked exceptions), I can remove a lot of these rethrows ๐Ÿ˜

JAXB errors in Java 9 due to deprecated javax.activation framework

Java 9 disables access to the javax.* packages by default, and has included the JAXB package as one of them. This causes runtime errors when using this library with Java 9. There's a workaround of telling Java 9 to allow access to this package (--add-modules java.xml.bind (yes, there's no "x" there)) but this won't work come Java 10.

Long-term fix: update the JAXB dependency to one that's made for Java 9?

JodaTime adapter for xsd:date

Hi - how about a JAXB adapter for jodatime <-> xsd:date types? (e.g. LocalDate as it does represent time - only the date).

Adapters for the Java 8 time package

Not sure if JAXB does this already for Java 8, but if not it could help people (namely myself!) with the migration from Joda Time to java.time that the author of Joda Time encourage people to do.

Need to escape CDATA end sequence in XMLCDataAdapter

quick fix:

diff --git a/Java/nz/net/ultraq/jaxb/adapters/XMLCDataAdapter.java b/Java/nz/net/ultraq/jaxb/adapters/XMLCDataAdapter.java
index 02be060..88221d5 100644
--- a/Java/nz/net/ultraq/jaxb/adapters/XMLCDataAdapter.java
+++ b/Java/nz/net/ultraq/jaxb/adapters/XMLCDataAdapter.java
@@ -35,7 +35,7 @@ public class XMLCDataAdapter extends XmlAdapter<String, String> {
    @Override
    public String marshal(String value) {

-       return "<![CDATA[" + value + "]]>";
+       return "<![CDATA[" + value.replaceAll("]]>", "]]]]><![CDATA[>") + "]]>";
    }

    /**

Problem building with gradle

et2448@ubuntu:~/projects/ext/github.com/jaxb-utilities$ /opt/gradle-1.7/bin/gradle build

FAILURE: Build failed with an exception.

  • Where:
    Script 'https://raw.github.com/ultraq/gradle-support/master/maven-support.gradle' line: 174

  • What went wrong:
    A problem occurred evaluating script.

    No such property: sonatypeUsername for class: org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 6.464 secs
et2448@ubuntu:~/projects/ext/github.com/jaxb-utilities$

release 1.2.5

Hi - can you push a release of 1.2.5 to maven central?

TIA

Drop external JAXB dependency

JAXB has been a part of Java for a while now, but I rely on some additional classes that are in JAXB 2.2.7 but not in 2.2.11 to do some of the more edge-casey stuff.

Is it possible to drop the external dependency? Will I have to provide copies of those additional classes?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.