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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8.2.0
    • None
    • Mission Control Client
    • None

      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)
      

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

              Created:
              Updated:
              Resolved: