GithubHelp home page GithubHelp logo

Comments (12)

Dufgui avatar Dufgui commented on June 2, 2024

I think i have the same problem. Here is a reproducer
https://github.com/Dufgui/tycho-demo/tree/toolchain/itp04-rcp

ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:2.3.0:compile (default-compile) on project example-bundle: Compilation failure: Compilation failure:
[ERROR] C:\Users\gdufour\git\github\eclipse\tycho-demo\itp04-rcp\example-bundle\src\example\bundle\Application.java:[21]
[ERROR]         import javax.xml.bind.annotation.XmlEnum;
[ERROR]                ^^^^^^^^^^^^^^

from tycho.

laeubi avatar laeubi commented on June 2, 2024

@Dufgui can you create a PR that adds a new integrationtest for this case derived from the example?

from tycho.

Dufgui avatar Dufgui commented on June 2, 2024

I try but all my test are working on IT. i will check my product build if I miss some alignment because it seems working.

https://github.com/Dufgui/tycho/tree/571533_breeJava8

here is my branch
#188

from tycho.

Dufgui avatar Dufgui commented on June 2, 2024

it's work on my mac, and the same repo last week on my windows fail. Maybe i miss the path on my windows laptop.
I will check next week (when i go back to work) to check.

from tycho.

cipresso avatar cipresso commented on June 2, 2024

Hi. I'm having the same issue with javax.xml.bind* classes not being resolved. For me, versions later than 2.1.0 of tycho-compiler-plugin show the problem.

            <plugin>
              <groupId>org.eclipse.tycho</groupId>
              <artifactId>target-platform-configuration</artifactId>
              <version>${tycho.version}</version>
              <configuration>
                <executionEnvironment>JavaSE-1.8</executionEnvironment>
                ...

          <plugin>
            <groupId>org.eclipse.tycho</groupId>
            <artifactId>tycho-compiler-plugin</artifactId>
            <version>${tycho.version}</version>
            <configuration>
              <compilerArgument>-warn:+discouraged,forbidden</compilerArgument>
              <source>1.8</source>
              <target>1.8</target>
              <useJDK>BREE</useJDK>
            </configuration>
          </plugin>
<toolchains>
  <toolchain>
    <type>jdk</type>
    <provides>
      <id>JavaSE-1.8</id>
      <version>1.8</version>
      <vendor>ibm</vendor>
    </provides>
    <configuration>
      <jdkHome>/home/jenkins/.../ibm-java-x86_64-80/</jdkHome>
    </configuration>
  </toolchain>
</toolchains>

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:2.5.0:compile (default-compile) on project com.ibm.zosconnect.ui.common: Compilation failure: Compilation failure:
[ERROR] /home/jenkins/.../com.ibm.###removed###.java:[30]
[ERROR] import javax.xml.bind.JAXBContext;
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^

from tycho.

laeubi avatar laeubi commented on June 2, 2024

@cipresso can you provide an simple reproducer project for thsi issue?

from tycho.

laeubi avatar laeubi commented on June 2, 2024

@akurtakov I debugged this a bit and get the feeling that this is probably caused due to removed JavaSE1.8 profile, what do you think would it harm to add this back (and simply not manage it any further) for 2.7.x ?

from tycho.

akurtakov avatar akurtakov commented on June 2, 2024

Where is the JavaSE-1.8 profile removed?

from tycho.

laeubi avatar laeubi commented on June 2, 2024

Where is the JavaSE-1.8 profile removed?

Good question, I though it was part of Tycho but seems be part of org.eclipse.ogi I just noticed its not in tcho-core so I assumed we have removed it.

Maybe I'm on the wrong track but if I have Jdk8 should it not resolve+compile without any additional adding for javax. stuff? Sadly the only jdk8 test we have do not use such imports thats why this regression was not discovered..

from tycho.

akurtakov avatar akurtakov commented on June 2, 2024

I personally don't have time to spend on Java 8 issues, there is enough on my plate with Java 18 which is far more important IMHO.

from tycho.

laeubi avatar laeubi commented on June 2, 2024

This issue is a regression of Bug 561363.
To restore old behavior one needs to set <deriveReleaseCompilerArgumentFromTargetLevel>false<deriveReleaseCompilerArgumentFromTargetLevel>.

from tycho.

laeubi avatar laeubi commented on June 2, 2024

I summarized the important parts here: https://github.com/eclipse/tycho/wiki/Compiling-code-for-older-java-releases

from tycho.

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.