Bug 71729 - Syntax error on token "super", delete this token
Summary: Syntax error on token "super", delete this token
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 critical (vote)
Target Milestone: 3.1 M1   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-10 14:03 EDT by Kent Ly CLA
Modified: 2005-01-11 11:02 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kent Ly CLA 2004-08-10 14:03:56 EDT
public void initControls() throws Exception
{
  JDialogUtils.disable( super); <- error, but ok with JBuilder 6
  ........
}
Comment 1 Olivier Thomann CLA 2004-08-10 16:02:13 EDT
super is not a primary, so this is a syntax error.
javac 1.4.2_05 also reports a syntax error:
B.java:11: '.' expected
  JDialogUtils.disable( super);
                             ^
B.java:11: <identifier> expected
  JDialogUtils.disable( super);
                              ^
2 errors

Jikes 1.18 also reports a syntax error:


Found 1 syntax error in "C:/tests_sources/B.java":

    11.   JDialogUtils.disable( super);
                                ^---^
*** Syntax: Unexpected symbol ignored

Issued 1 semantic warning compiling "C:/tests_sources/B.java":

     5. class A {
              ^
*** Semantic Warning: The file "B.java" contains type "A" which conflicts with
file "A.java".

See
http://java.sun.com/docs/books/jls/second_edition/html/expressions.doc.html#23302

Closing as INVALID.