This is a reopen of 4413454
In the following type of error message:
Test.java:7: method() in Test cannot implement method() in Interface;
attempting to assign weaker access privileges; was public
public class Test
^
it would be helpful if the compiler reported the line number of the declaration
of the method instead of the line number of the class.
Here's a test case:
----------------------------------------
interface Interface
{
void method();
} // interface Interface
public class Test
implements Interface
{
void method()
{
} // method()
} // class Test
----------------------------------------
Test.java:7: method() in Test cannot implement method() in Interface; attempting
to assign weaker access privileges; was public
public class Test
^
1 error
###@###.### 2001-11-07
In the following type of error message:
Test.java:7: method() in Test cannot implement method() in Interface;
attempting to assign weaker access privileges; was public
public class Test
^
it would be helpful if the compiler reported the line number of the declaration
of the method instead of the line number of the class.
Here's a test case:
----------------------------------------
interface Interface
{
void method();
} // interface Interface
public class Test
implements Interface
{
void method()
{
} // method()
} // class Test
----------------------------------------
Test.java:7: method() in Test cannot implement method() in Interface; attempting
to assign weaker access privileges; was public
public class Test
^
1 error
###@###.### 2001-11-07
- relates to
-
JDK-4278961 # error reporting and recovery issues in the new compiler
- Closed
-
JDK-4413454 "attemping to assign weaker access" message doesn't give method line number
- Closed