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 15186 - [JDK1.4]beta2: Compiler problem - compiling error occurred in some case.
Summary: [JDK1.4]beta2: Compiler problem - compiling error occurred in some case.
Status: CLOSED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: -FFJ-
Hardware: PC Windows 3.1/NT
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-09-07 01:36 UTC by _ hlu
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 _ hlu 2001-09-07 01:36:28 UTC
Used build 010817a with jdk1.4.0 Beta:

There is compiling error when compile the jsp page(see below). The same jsp 
page is compiled fine with jdk1.3.1. The error is:
========================================================
_0002findex_0002ejspindex_jsp_0.java [13:1] '.' expected
import HelloBean;
                ^
1 error
Errors compiling index.
========================================================
<%@page contentType="text/html"%>
<%@page import = "HelloBean" %>

<html>
<head><title>Hello</title></head>
<body>
<jsp:useBean id="hello" scope="session" class="HelloBean" />
<jsp:setProperty name="hello" property="*" />
<h1>
Hello,
<jsp:getProperty name="hello"  property="name" />
</h1>
</body>
</html>
Comment 1 Svata Dedic 2001-09-07 06:39:02 UTC
The most probable cause is, that compiler in JDK-1.4 refuses to import
classes from the default (unnamed) package - so it correctly complains
about unqualified identifier after `import' keyword.
For more information, please read docs about incompatible changes in
JDK-1.4 at http://java.sun.com

[I've already filed a bug on this, but it was closed as invalid by
JavaSoft]
Comment 2 Quality Engineering 2003-07-01 13:11:56 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 3 Quality Engineering 2003-07-01 13:21:30 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.