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

Compile error with 8u40 since Region#getUserAgentStylesheet() was made public

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not an Issue
    • P4
    • None
    • 8u40
    • javafx

    Description

      I don't know if it's a problem for you, but the following "custom control" code compiles with Java 8u20, but does not compile with 8u40 b17.

      It says: "getUserAgentStylesheet() in MyTextField clashes with getUserAgentStylesheet() in Region. Attempting to assign weaker access privileges (protected), was public".

      Seems like you changed it from protected to public.

      I am ok with it, if it was necessary, but I am not sure, how strict your backwards-compatibility policy is in such a case. I guess it won't harm runtime behavior(?).
      Otherwise feel free to close this bug.


          public class MyCustomControl extends Control {

              @Override
              protected String getUserAgentStylesheet() {
                  return "";
              }
          }

      Attachments

        Issue Links

          Activity

            People

              jgiles Jonathan Giles
              cschudtjfx Christian Schudt (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: