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 269650 - Problem with importing utilities
Summary: Problem with importing utilities
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-25 22:39 UTC by stevenjbark
Modified: 2017-01-25 22:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (115.48 KB, text/plain)
2017-01-25 22:39 UTC, stevenjbark
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stevenjbark 2017-01-25 22:39:21 UTC
Product Version = NetBeans IDE 8.2 (Build 201609300101)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.8.0_121
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.121-b13

Reproducibility: Happens every time

Running the Following Program as I am Learning Java:
Observation: The program does not work when I use import java.util.*;
The program does work fine when I use import java.util.Date;

I also checked using Notepad as a text editor and compiling with javac. The program works fine when I use import java.util.*; or import java.util.Date;

Problem appears to be related to NetBeans IDE 8.2

package java24hours;

import java.util.*; (NOT WORKING), import java.util.Date; (WORKING)
import java.text.*;

class Date2
{
    public static void main(String [] arguments)
    {
     Date date = new Date();
     DateFormat dateFormat = new SimpleDateFormat("yyy-MM-dd hh:mm:ss");
     String strDate = dateFormat.format(date);
     System.out.println(strDate);
    }
Comment 1 stevenjbark 2017-01-25 22:39:24 UTC
Created attachment 163467 [details]
IDE log