Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8019976

JVM does not prohibit access to private interface methods in c.f.v. 52.0 during method resolution

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Duplicate
    • Affects Version/s: 8
    • Fix Version/s: None
    • Component/s: hotspot
    • Environment:

      $ uname -a
      SunOS nexus 5.10 Generic_144488-06 sun4u sparc SUNW,Sun-Fire-880

    • Subcomponent:
    • Introduced In Version:
      8

      Description

      Please use attached sources to reproduce such behaviour.

      $ /java/re/jdk/8/promoted/ea/b97/binaries/solaris-sparc/bin/java -jar \
        /java/re/asmtools/5.0/promoted/ea/b02/binaries/asmtools-5.0/lib/asmtools.jar \
        jasm resolveMethod00602m10n.jasm -d .
      resolveMethod00602m10n.jasm:39: Warning: interface method must be abstract public only "private *****private *****".
          private Method m:"()I"
                         ^
      1 warning

      $ /java/re/jdk/8/promoted/ea/b97/binaries/solaris-sparc/bin/javac -g:none \
        resolveMethod00602m1.java -d .
      Note: resolveMethod00602m1.java uses unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.

      $ /java/re/jdk/8/promoted/ea/b97/binaries/solaris-sparc/bin/java -cp . javasoft.sqe.tests.vm.constantpool.resolveMethod.resolveMethod006.resolveMethod00602m1.resolveMethod00602m1
      Failed to reject invalid class resolveMethod00602m10n

        Attachments

        1. resolveMethod00602m1.java
          3 kB
          Yuri Gaevsky
        2. resolveMethod00602m10n.jasm
          2 kB
          Yuri Gaevsky

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              ygaevsky Yuri Gaevsky
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: