Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-2528

[drlvm] VM crashes instead of throwing AbstractMethodError

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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() {}
      }

        Attachments

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

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: