Harmony
  1. Harmony
  2. HARMONY-2528

[drlvm] VM crashes instead of throwing AbstractMethodError

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: DRLVM
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      The following test perfectly compiles with javac, and throws
      java.lang.AbstractMethodError: javax/management/monitor/Monitor.createMX4JMonitor()Lmx4j/monitor/MX4JMonitor;
      at javax.management.monitor.Monitor.getMX4JMonitor(Monitor.java:54)
      at javax.management.monitor.Monitor.getObservedObjects(Monitor.java:149)
      at Test1.main(Test1.java:7)
      when used with mx4j implementation. DRLVM + JIT crashes trying to compile abstract method.

      import javax.management.monitor.*;
      import javax.management.*;

      public class Test1 {

      public static void main(String[] args) throws Exception

      { (new MonitorImpl()).getObservedObjects(); }

      }
      class MonitorImpl extends javax.management.monitor.Monitor {
      @Override
      public void start() {}
      @Override
      public void stop() {}
      }

      1. Test1.java
        0.3 kB
        Alexei Fedotov
      2. H2528-AME.patch
        7 kB
        Pavel Pervov
      3. AbstractMethodError.patch
        12 kB
        Alexei Fedotov
      4. AbstractMethodError_2.patch
        12 kB
        Alexei Fedotov
      5. AbstractMethodError_1.patch
        12 kB
        Alexei Fedotov

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Gregory Shimansky
              Reporter:
              Alexei Fedotov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development