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 9784 - Fast Javac does not throw exception while compiling class unaccessible between packages.
Summary: Fast Javac does not throw exception while compiling class unaccessible betwee...
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: -FFJ-
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Ivan Bradac
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-02-22 17:12 UTC by Martin Grebac
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 Martin Grebac 2001-02-22 17:12:32 UTC
Using these class definitions>

---------- Package 1 -------------
package package1;

public class ADS {
  public ADS () {}
  
  public AmsAddr getAmsAddr() {
    return new AmsAddr();
  }
}

class AmsAddr {
  public short port;
  public short getPort(){
    return port;
  }
}

--------- Package 2 -------------------------------

package package2;

import package1.*;

public class TestFrame {
  private TestFrame () {}
  private void aaa() {
    ADS myADS = new ADS();
    System.out.println("ADS AmsAddr.port: "+myADS.getAmsAddr().getPort());
    System.out.println("ADS AmsAddr.port: "+myADS.getAmsAddr().port);
  }
}
-----------------------------

The fastjavac does throw error only at the second Sys.out line, but it should
throw two errors on both Sys.out lines.
Comment 1 Ivan Bradac 2001-02-23 18:29:43 UTC
Has been forwarded to the Sun's fastjavac team.
Comment 2 Ivan Bradac 2001-04-19 10:39:49 UTC
Fixed in dev and maintrunk.
Comment 3 Ivan Bradac 2001-04-19 10:40:17 UTC
Fixed in dev and maintrunk.
Comment 4 Quality Engineering 2003-07-01 13:19:55 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.