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 30638 - Fastjavac does not compile valid source file
Summary: Fastjavac does not compile valid source file
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Misha Bykov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-04 10:51 UTC by tkellerer
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

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 tkellerer 2003-02-04 10:51:06 UTC
I have a class which compiles fine with the
"External Compilation" compiler.

However when switching to fastjavac I get a
compiler error "Class xxx not found in type
declaration or input" on an import line:

Here is the sourcecode which does not compile with
fastjavac but with javac.

import javax.crypto.spec.SecretKeySpec;

public class MyCipher
{
  private static final byte[] KEY_DATA = null;
  private static final SecretKeySpec KEY = 
      new SecretKeySpec(KEY_DATA, "DES");
}

The error message is as follows:


MyCipher.java [1:1] Class SecretKeySpec not found
in type declaration or import.
import javax.crypto.spec.SecretKeySpec;
                         ^
MyCipher.java [6:1] Class SecretKeySpec not found
in type declaration or import.
  private static final SecretKeySpec KEY = new
SecretKeySpec(KEY_DATA, "DES");
                       ^
2 errors
Errors compiling MyCipher [Local].

It looks like fastjavac does not include the
standard 1.4.1 libraries during compilation.
Comment 1 genero 2003-02-06 14:12:00 UTC
This bug fixed in fastjavac build #535
Comment 2 Jan Becicka 2003-02-28 15:14:35 UTC
Cannot verify. There is fastjavac 534 in the trunk
Comment 3 Quality Engineering 2007-09-20 09:56:26 UTC
Reorganization of java component