Uploaded image for project: 'Java Mission Control'
  1. Java Mission Control
  2. JMC-7119

JMC does not compile with tycho-compiler-plugin 2.1.0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 8.1.0
    • Component/s: Mission Control Client
    • Labels:
      None

      Description

      Steps to reproduce:

      Modify pom.xml property tycho.version to 2.1.0 (previously 2.0.0) and compile normally. Or override the property e.g.

      $ mvn -Dtycho.version=2.1.0 clean verify

      Expected results:
      Build succeeds

      Actual results:

      [ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:2.1.0:compile (default-compile) on project org.openjdk.jmc.attach: Compilation failure: Compilation failure: 
      [ERROR] jmc/application/org.openjdk.jmc.attach/src/main/java/org/openjdk/jmc/attach/AttachToolkit.java:[39] 
      [ERROR] 	import sun.management.counter.perf.InstrumentationException;
      [ERROR] 	       ^^^^^^^^^^^^^^
      [ERROR] The import sun.management cannot be resolved
      [ERROR] /home/jkang/Work/code/src/github.com/jiekang/jmc/application/org.openjdk.jmc.attach/src/main/java/org/openjdk/jmc/attach/AttachToolkit.java:[91] 
      [ERROR] 	} catch (InstrumentationException e) {
      [ERROR] 	         ^^^^^^^^^^^^^^^^^^^^^^^^
      [ERROR] InstrumentationException cannot be resolved to a type
      [ERROR] 2 problems (2 errors)
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            jkang Jie Kang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: