This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 3141 - Compiler compiles code which is correct by definition but it`s contradictory with "good behaviour"
Summary: Compiler compiles code which is correct by definition but it`s contradictory ...
Status: CLOSED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: support
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-08-04 22:22 UTC by Jan Palka
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Palka 1999-08-04 22:22:32 UTC
[IAN] This is defined as correct behavior of javac...
[BAT]  However javac doesn`t compile such code -(I mean javac.exe )

Example
Consider such hierarchy

   PackageA
       | - ClassA

and source of ClassA  looks like this:

package PackageB;

class ClassA {
}


Compiler compiles it OK, but IMHO it is not desired. Because it could lead to very strange exceptions. The class file is PackageB.ClassA  but Netbeans considered PackageA.ClassA
Comment 1 Marek Grummich 2000-07-25 09:37:59 UTC
Priority is changed to P4 (normal).