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

[drlvm] VM crashes instead of throwing AbstractMethodError

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • DRLVM
    • None
    • 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.patch
          12 kB
          Alexei Fedotov
        2. Test1.java
          0.3 kB
          Alexei Fedotov
        3. AbstractMethodError_1.patch
          12 kB
          Alexei Fedotov
        4. AbstractMethodError_2.patch
          12 kB
          Alexei Fedotov
        5. H2528-AME.patch
          7 kB
          Pavel Pervov

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: