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

[drlvm][kernel] Drlvm does not allow to call public constructor of 'private static' inner class from within another class

    XMLWordPrintableJSON

Details

    • Moderate

    Description

      Here is the test that passes with SUN or BEA but fails with DRLVM

      import java.lang.reflect.*;
      public class Hello {

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

      { Class cls = A.class.getDeclaredClasses()[0]; Constructor con = cls.getDeclaredConstructors()[0]; Object[] params = new Object[0]; con.newInstance(params); }

      }

      class A {
      private static class B {
      B()

      { System.out.println("PASSED"); }

      }
      }

      This test prevents joda-time (see http://joda-time.sourceforge.net, JSR310) tests to be passed on DLRVM

      Attachments

        Issue Links

          Activity

            People

              varlax Alexey Varlamov
              mfursov Mikhail Fursov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: