Coder Social home page Coder Social logo

java-json-tools / msg-simple Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fge/msg-simple

1.0 1.0 4.0 952 KB

A lightweight, UTF-8 capable, printf() capable alternative to Java's ResourceBundle

License: Other

Shell 0.05% Java 96.11% HTML 3.83%

msg-simple's People

Contributors

capstan avatar fge avatar

Stargazers

 avatar

Watchers

 avatar  avatar

msg-simple's Issues

Support a configurable single-threaded, non-blocking bundle loader

Tracked also at private https://issuetracker.google.com/133724564.

Background: A number of our Java servers require operating in a non-blocking fashion, mostly to avoid ever running up against a blocking network call. In addition, our test harness also prefers single-threaded execution to reduce overhead. When we execute code from https://github.com/java-json-tools/json-schema-validator we run into both, as it uses msg-simple to load its error message bundles.

Proposed: We create a single-threaded alternative MessageSourceProvider that can be selected by configuration for use with PropertiesBundle that doesn't block.

License Question

Hello @huggsboson @Capstan @daveclayton , I'm working with a company and we are looking at using some of your projects as dependencies.
Where it says that these repos are "licensed under both LGPLv3 and ASL 2.0", and in the LICENSE files that they are "dual-licensed," I've interpreted that as meaning that these repos can be used under either LGPLv3 or ASL 2.0.
Can you confirm that that's the intent here? I've received questions about whether it means that downstream projects have to use the code under both LGPLv3 and ASL 2.0. I would really appreciate if you could confirm. Thank you!

Add new maven release tag including names in message loading daemon threads

As i am currently using json-schema-validator i came across this problem of unnamed threads (see #27). I observed, that the current version (as of commit 8e46ad4 from #28) already sets the thread names, but it is not yet included to the package on maven.

Is it possible to deploy the current version of the msg-simple library (including 8e46ad4) to maven? This would really help me.

Thanks in advance

FR: Set name and count of generated threads

LoadingMessageSourceProvider creates a ThreadFactory that creates threads with the default names. Consider setting the name to MsgSimple-%d using an AtomicLong.getAndIncrement() so the threads are easily attributable to their code.

Was originally fge#4.

Date format mismatch in test on Travis.

This doesn't repro for me locally, but it does on Travis.

Gradle suite > Gradle test > com.github.fge.msgsimple.bundle.MessageBundleTest.messageFormatWorks[0](At {1,time} on {1,date}, there was {2} on planet {0,number,integer}., [Ljava.lang.Object;@712ed1a6, At 12:30:00 PM on Jul 3, 2053, there was a disturbance in the Force on planet 7.) FAILED
    java.lang.AssertionError: expected [At 12:30:00 PM on Jul 3, 2053, there was a disturbance in the Force on planet 7.] but found [At 12:30:00 on 2053 Jul 3, there was a disturbance in the Force on planet 7.]
        at org.testng.Assert.fail(Assert.java:94)
        at org.testng.Assert.failNotEquals(Assert.java:494)
        at org.testng.Assert.assertEquals(Assert.java:123)
        at org.testng.Assert.assertEquals(Assert.java:176)
        at org.testng.Assert.assertEquals(Assert.java:186)
        at com.github.fge.msgsimple.bundle.MessageBundleTest.messageFormatWorks(MessageBundleTest.java:396)

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.