From cc0adf19a9c43786e111d0fbb66f0a04b6f3ca56 Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Tue, 17 Nov 2015 18:59:04 +0300 Subject: [PATCH] Exposed visibility deprecation warnings made errors + relevant test fixes Original commit: 4e44466cf9cdc486bfae92111d5b50caf1c43ab8 --- .../CircularDependenciesInternalFromAnotherModule/errors.txt | 5 ++++- .../testData/general/InternalFromAnotherModule/errors.txt | 4 +++- .../simpleDependencyErrorOnAccessToInternal1/build.log | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/jps/jps-plugin/testData/general/CircularDependenciesInternalFromAnotherModule/errors.txt b/jps/jps-plugin/testData/general/CircularDependenciesInternalFromAnotherModule/errors.txt index 331aaf1316d..16909f08763 100644 --- a/jps/jps-plugin/testData/general/CircularDependenciesInternalFromAnotherModule/errors.txt +++ b/jps/jps-plugin/testData/general/CircularDependenciesInternalFromAnotherModule/errors.txt @@ -4,4 +4,7 @@ Cannot access 'InternalClass1': it is 'internal' in 'test' at line 8, column 36 Cannot access 'InternalClass2': it is 'internal' in 'test' at line 19, column 15 Cannot access 'InternalClassAnnotation': it is 'internal' in 'test' at line 10, column 2 Cannot access 'InternalFileAnnotation': it is 'internal' in 'test' at line 1, column 7 -Cannot access 'member': it is 'invisible_fake' in 'ClassAA1' at line 27, column 25 \ No newline at end of file +Cannot access 'member': it is 'invisible_fake' in 'ClassAA1' at line 27, column 25 +Subclass effective visibility 'public' should be the same or less permissive than its superclass effective visibility 'internal' at line 18, column 36 +Subclass effective visibility 'public' should be the same or less permissive than its superclass effective visibility 'internal' at line 19, column 15 +Subclass effective visibility 'public' should be the same or less permissive than its superclass effective visibility 'internal' at line 8, column 36 \ No newline at end of file diff --git a/jps/jps-plugin/testData/general/InternalFromAnotherModule/errors.txt b/jps/jps-plugin/testData/general/InternalFromAnotherModule/errors.txt index 2fae260968a..6da24d6c7e8 100644 --- a/jps/jps-plugin/testData/general/InternalFromAnotherModule/errors.txt +++ b/jps/jps-plugin/testData/general/InternalFromAnotherModule/errors.txt @@ -3,4 +3,6 @@ Cannot access 'InternalClass1': it is 'internal' in 'test' at line 5, column 13 Cannot access 'InternalClass1': it is 'internal' in 'test' at line 8, column 36 Cannot access 'InternalClassAnnotation': it is 'internal' in 'test' at line 10, column 2 Cannot access 'InternalTestAnnotation': it is 'internal' in 'test' at line 1, column 7 -Cannot access 'member': it is 'invisible_fake' in 'ClassAA1' at line 27, column 25 \ No newline at end of file +Cannot access 'member': it is 'invisible_fake' in 'ClassAA1' at line 27, column 25 +Subclass effective visibility 'public' should be the same or less permissive than its superclass effective visibility 'internal' at line 18, column 36 +Subclass effective visibility 'public' should be the same or less permissive than its superclass effective visibility 'internal' at line 8, column 36 \ No newline at end of file diff --git a/jps/jps-plugin/testData/incremental/multiModule/simpleDependencyErrorOnAccessToInternal1/build.log b/jps/jps-plugin/testData/incremental/multiModule/simpleDependencyErrorOnAccessToInternal1/build.log index df01db10bfd..f7e53b09f20 100644 --- a/jps/jps-plugin/testData/incremental/multiModule/simpleDependencyErrorOnAccessToInternal1/build.log +++ b/jps/jps-plugin/testData/incremental/multiModule/simpleDependencyErrorOnAccessToInternal1/build.log @@ -22,5 +22,6 @@ Cannot access 'A': it is 'internal' in 'a' Cannot access 'FileAnnotation': it is 'internal' in 'a' Cannot access 'ClassAnnotation': it is 'internal' in 'a' Cannot access 'ClassAnnotation': it is 'internal' in 'a' +Function effective visibility 'public' should be the same or less permissive than its parameter type effective visibility 'internal' Cannot access 'A': it is 'internal' in 'a' Cannot access 'a': it is 'internal' in 'a' \ No newline at end of file