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 51111 - Import sdk 5 classes
Summary: Import sdk 5 classes
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-03 05:05 UTC by bayegank
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 bayegank 2004-11-03 05:05:38 UTC
I am not able to import some sdk 5.0 classes, 
for example

import java.util.Scanner;

does not work.

Does NetBeans 3.6 suuport only version 1.4.2?
Comment 1 Jan Becicka 2004-11-03 07:25:35 UTC
Yes Netbeans 3.6 does not fully support sdk 5.0. This issue is fixed
in NB 4.0.
Comment 2 Martin Matula 2004-11-03 09:07:38 UTC
Anyway, you should be able to add this import even in 3.6. What do you
mean by saying you are not able to? Are you getting a compilation
error? If so, make sure you are running on JDK 5.0 so that the file
you are trying to import is on the bootclasspath.
Comment 3 bayegank 2004-11-03 12:53:45 UTC
The problem is I can't import sdk 1.5 classes into Netbeans 3.6. 
For example, the statement:

import java.util.Scanner;

fails.
Comment 4 Martin Matula 2004-11-03 13:00:44 UTC
My question was, what you mean by saying that the import statement fails??
Does it give you a compiler error, or what? Are you running on JDK
5.0? Could you attach your IDE log?
Btw. this bug is definitely not reproducibe in the current dev build,
that's why we mark it as fixed.
Comment 5 bayegank 2004-11-03 13:09:53 UTC
I installed Netbeans 3.6 and SDK 5.0 yesterday, so I am assuming I 
have the latest builds. The detail window on Netbean's "About" says 
I am running on Java 1.5.0

As soon as I type the import statement, it is marked as an error. 
Also, in the code completion box that pops up after "import 
java.util.", Scanner does not even appear as an option.

Comment 6 Martin Matula 2004-11-03 13:24:53 UTC
NetBeans 3.6 was released in April. The bugs reported agains it are
fixed in CVS maintrunk and released in daily dev builds. They will be
available in 4.0 release.
Please do not reopen this issue unless you are able to reproduce it in
the NetBeans 4.0 build. If you are able to reproduce it there, please
attach your messages.log.
Regarding the fact that the Scanner class does not appear in the code
completion, it is a known problem in NB 3.6 - the code completion
database contained only JDK 1.4 classes.
Comment 7 Jan Chalupa 2004-11-03 13:58:55 UTC
I assume the resolution should be WONTFIX in this case. There were no
code changes made to address the originally reported problem. NB 3.6
doesn't support JDK 1.5 fully as correctly stated, problem no longer
exists in NB 4.0. Reopening to change the resolution status.
Comment 8 Jan Chalupa 2004-11-03 14:03:15 UTC
WONTFIX.
Comment 9 Quality Engineering 2007-09-20 12:17:48 UTC
Reorganization of java component