[ nice-Bugs-1060712 ] Need access checks when extending java classes

"SourceForge.net" <[email protected]> Fri, 05 Nov 2004 00:28:18 -0800
Newsgroups gmane.comp.lang.nice.devel
Message-ID <[email protected]>
Bugs item #1060712, was opened at 2004-11-04 20:56
Message generated for change (Comment added) made by leblin
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=1060712&group_id=12788

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Luc Perrin (leblin)
Assigned to: Nobody/Anonymous (nobody)
Summary: Need access checks when extending java classes

Initial Comment:
Nice compiler version 0.9.10 prerelease, from cvs

How to reproduce
1. create a java class in one package that is not public
2. extend the java class in a nice class in a different
package

The compiler will tell you that your nice class has no
constructor.  The compiler should state that the class
can not be extended because it is not available from
this package.

In addition, if the java class is public but no
constructors in the java class are public, the compiler
will tell you that your nice class has no constructor.
 In this case, the compiler should state that no
constructors in the super class are available from this
package.

i posted this as a bug instead of in the
BadErrorMessages wiki page because these errors message
are very misleading.




----------------------------------------------------------------------

>Comment By: Luc Perrin (leblin)
Date: 2004-11-05 00:28

Message:
Logged In: YES 
user_id=717201

The attached patch fixes the first case.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=1060712&group_id=12788


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click