folowup to IDEA-149950: changed "package local" to JLS-conformant "package-private"

This commit is contained in:
Alexey Kudravtsev
2016-02-18 13:53:04 +03:00
parent ced90d82dd
commit 86b6ee7f18
33 changed files with 77 additions and 77 deletions
@@ -11,7 +11,7 @@ class a extends Component {
s.<error descr="'createBuffers(int, java.awt.BufferCapabilities)' has protected access in 'java.awt.Component.FlipBufferStrategy'">createBuffers</error>(1,null);
// TODO
// now cannot distinquish private from package local in class files
// now cannot distinquish private from package-private in class files
//< error descr="'java.awt.Component.SingleBufferStrategy' has private access in 'java.awt.Component'">SingleBufferStrategy< /error> s2 = null;
//Object o = s2.< error descr="'caps' has private access in 'java.awt.Component.SingleBufferStrategy'">caps< /error>;
}
@@ -4,7 +4,7 @@ interface i {
}
public class a implements i {
void <error descr="'ff()' in 'a' clashes with 'ff()' in 'i'; attempting to assign weaker access privileges ('package local'); was 'public'">ff</error>() {}
void <error descr="'ff()' in 'a' clashes with 'ff()' in 'i'; attempting to assign weaker access privileges ('package-private'); was 'public'">ff</error>() {}
}
class ai implements i {
public <error descr="'ff()' in 'ai' clashes with 'ff()' in 'i'; attempting to use incompatible return type">int</error> ff() { return 0;}
@@ -34,7 +34,7 @@ interface i2 {
class weak {
void f1() {}
}
<error descr="'f1()' in 'weak' clashes with 'f1()' in 'i'; attempting to assign weaker access privileges ('package local'); was 'public'">class a2 extends weak implements i</error> {
<error descr="'f1()' in 'weak' clashes with 'f1()' in 'i'; attempting to assign weaker access privileges ('package-private'); was 'public'">class a2 extends weak implements i</error> {
}
class a3 {
@@ -6,7 +6,7 @@ public class A extends D{
class C extends x.sub.B {
int n=<error descr="'k' is not public in 'x.A'. Cannot be accessed from outside package">k</error>;
// can call despite inherited through package local from other package
// can call despite inherited through package-private from other package
void f() { A.staticF(); }
}
@@ -1,4 +1,4 @@
// package local class in the middle
// package-private class in the middle
package x;
class ComponentClass {
@@ -1,4 +1,4 @@
// "Make 'a.i' package local" "true"
// "Make 'a.i' package-private" "true"
import java.io.*;
class a {
@@ -1,4 +1,4 @@
// "Make 'a.i' package local" "true"
// "Make 'a.i' package-private" "true"
import java.io.*;
class a {