question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using Immutables.Criteria in Java 9+ environment

See original GitHub issue

I’m trying to import the Criteria annotations in a JDK11 environment.

<dependency>
    <groupId>org.immutables</groupId>
    <artifactId>criteria-inmemory</artifactId>
    <version>2.8.2</version>
</dependency>

It seems the module name is not valid because of the dash: requires org.immutables.criteria-common;. There are no issues adding the requires statements for Values. Any suggestions would be greatly appreciated!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
elucashcommented, Nov 20, 2020
$ jar --describe-module --file criteria-mongo-2.8.9-SNAPSHOT.jar
No module descriptor found. Derived automatic module.

org.immutables.criteria.mongo@2.8.9-SNAPSHOT automatic
requires java.base mandated
contains org.immutables.criteria.mongo
contains org.immutables.criteria.mongo.bson4jackson
contains org.immutables.criteria.mongo.codecs
0reactions
realumhelpcommented, Nov 20, 2020

Without the fix you would get something like:

jar --describe-module --file criteria-inmemory-2.8.8.jar

Unable to derive module descriptor for: criteria-inmemory-2.8.8.jar
Automatic-Module-Name: org.immutables.criteria-inmemory: Invalid module name: 'criteria-inmemory' is not a Java identifier```
Read more comments on GitHub >

github_iconTop Results From Across the Web

Criteria - Immutables
The focus of Immutables Criteria is to provide database agnostic and efficient API for storing, querying and modifying documents expressed as immutable objects....
Read more >
Problem with @Criteria.Repository on Eclipse #1175 - GitHub
I'm dabbling a bit with @Criteria and it does not work with the Eclipse ... asMemberOf(TypesImpl.java:190) at org.immutables.value.internal.
Read more >
Immutables in Java - DZone
Start by making every class immutable and facilitate their immutability by creating small classes with simple methods. Simplicity and clean code ...
Read more >
Immutable in Java | LeadingAgile | Dave Nicolette
This post isn't a tutorial on how to design immutable objects in Java. It's more of a lament, or perhaps an extended whine....
Read more >
Immutable class? - java - Stack Overflow
Following are the requirements to make a Java class immutable: Class must be declared as final (So that child classes can't be created) ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found