Skip to content

master branch cannot be built using Java 21 which is the current LTS Version. #46

@simbo1905

Description

@simbo1905

Main states it needs Java 1.7 to build:

        <configuration>
          <source>1.7</source>
          <target>1.7</target>
        </configuration>

There is no security patched version of Java 1.7 available in 2025 it is beyond end-of-life.
If I tried to build master using Java 21 then things are broken with:

Failed tests: 
  TestIterator.testNil:34 expected null, but was:<null>

Tests in error: 
  TestIterator.testBoolean:21 ClassCast class mjson.Json$BooleanJson cannot be c...
  TestIterator.testNumber:45 ClassCast class mjson.Json$NumberJson cannot be cas...
  TestIterator.testObject:88 ClassCast class mjson.Json$NumberJson cannot be cas...
  TestIterator.testString:57 ClassCast class mjson.Json$StringJson cannot be cas...
  TestJsonSchemaSuite.data:55 Runtime While adding tests from file /Users/Shared...

Tests run: 42, Failures: 1, Errors: 5, Skipped: 0

There is another reported issue that there is no tag for the latest version of the code on mvn central. There is no support branch like v1.4.x where we might expect the woking latest release version of the code if master may be pushed in a broken state.

In order to allow people to contribute I would suggest:

  1. Always push a git tag for any version release version.
  2. Branch the broken master as a develop branch to back it up
  3. Reset the master to commit with is the 1.4.2 release commit.
  4. Update the develop branch to target source and binary versions to be 1.8 as no-one should be running java 1.7 anywhere at all.
  5. Raise an issue which explains what is the feature that is currently failing above as it is not clear what/why the code is not complete.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions