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

MR jar API validator doesn't detect changes in a return type of a method.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • tbd
    • 9
    • tools
    • jar

      Create two classes, compile and put them in base and v10 directories respectively
      public class C {
       public boolean m(){return true;}
      }

      public class C {
       public int m(){return 0;}
      }

      create MR jar
      jar cf file.jar -C base C.class,
                      --release 10 -C v10 C.class

      jar tool exits successfully.

            Unassigned Unassigned
            anazarov Andrey Nazarov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: