Code Monkey home page Code Monkey logo

Comments (6)

linustolke avatar linustolke commented on August 21, 2024

What do you mean by Java8? Is there two Java8?
The Jenkins-server that builds everything and runs the tests uses the docker image with java bundled. It uses the image maven:3-ibmjava-8. That in turn contains Java 8.
$ sudo docker exec e89ade7424a8 java -version java version "1.8.0_241" Java(TM) SE Runtime Environment (build 8.0.6.6 - pxa6480sr6fp6-20200303_01(SR6 FP6)) IBM J9 VM (build 2.9, JRE 1.8.0 Linux amd64-64-Bit Compressed References 20200124_438197 (JIT enabled, AOT enabled) OpenJ9 - 6754bf2 OMR - dca2cde IBM - 5cc5f54) JCL - 20200303_01 based on Oracle jdk8u241-b07 $

When buildnig and testing on my Linux host I successfully use another Java8:
$ java -version java version "1.8.0_201" Java(TM) SE Runtime Environment (build 1.8.0_201-b09) Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)

As I hope you noticed from my comment on the Change in Gerrithub, your changes makes many tests fail on that Jenkins-server.

from argouml.

stcarrez avatar stcarrez commented on August 21, 2024

The java version is one thing, the target compilation version is another.

I guess the issue comes from parentpom/pom.xml which has the definition:

<compileSource>1.6</compileSource>

I've changed that locally to use:

<compileSource>11</compileSource>

From maven, I'm using:

java -version
openjdk version "11.0.7" 2020-04-14
OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-3ubuntu1)
OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-3ubuntu1, mixed mode, sharing)

And from Intellij Idea, I was using JDK 1.8.0162 with target version 1.8.
I recently had to abandon the JDK 1.8 in favor of OpenJDK 11.

from argouml.

stcarrez avatar stcarrez commented on August 21, 2024

When running the unit tests with maven, I'm getting:

Tests run: 1175, Failures: 0, Errors: 1, Skipped: 0

The failed test is org.argouml.uml.ui.foundation.extension_mechanisms. TestUMLTagDefinitionComboBoxModel
and it fails because it tries to download a file at http://argouml.org/user-profiles/.

Caused by: org.argouml.model.XmiReferenceException: http://argouml.org/user-profiles/Profile4testGetApplic
ableTagDefinitionsIssue60082556515217236653360.xmi
        at org.argouml.model.mdr.XmiReaderImpl.parse(XmiReaderImpl.java:355)
        at org.argouml.persistence.ModelMemberFilePersister.readModels(ModelMemberFilePersister.java:277)
        ... 29 more
Caused by: javax.jmi.xmi.MalformedXMIException: org.xml.sax.SAXException: XMI parsing error at line: 32: h
ttp://argouml.org/user-profiles/Profile4testGetApplicableTagDefinitionsIssue60082556515217236653360.xmi
org.argouml.model.XmiReferenceRuntimeException: http://argouml.org/user-profiles/Profile4testGetApplicable
TagDefinitionsIssue60082556515217236653360.xmi
        at org.netbeans.lib.jmi.xmi.SAXReader.read(SAXReader.java:62)
        at org.argouml.model.mdr.XmiReaderImpl.parse(XmiReaderImpl.java:282)
        ... 30 more
</error>

from argouml.

linustolke avatar linustolke commented on August 21, 2024

When running the unit tests with maven, I'm getting:

Tests run: 1175, Failures: 0, Errors: 1, Skipped: 0

Rebase the argouml project (repo sync, repo rebase). I have fixed that now.

from argouml.

linustolke avatar linustolke commented on August 21, 2024

I guess the issue comes from parentpom/pom.xml which has the definition:

<compileSource>1.6</compileSource>

ArgoUML shouldn't really care about what version of Java it is compiled by and for. Should we stop specifying compileSource in parentpom?

from argouml.

stcarrez avatar stcarrez commented on August 21, 2024

The compileSource is necessary otherwise the build fails.

I've rebased and changed the parent pom to:

<compileSource>8</compileSource>

and now I'm getting the following

Tests run: 1175, Failures: 0, Errors: 0, Skipped: 0

For me it seems reasonable to compile and use JRE 8 as target.

from argouml.

Related Issues (20)

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.