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 87562 - unitialized static error highlights constructor
Summary: unitialized static error highlights constructor
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-19 19:32 UTC by athompson
Modified: 2013-09-02 14:20 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description athompson 2006-10-19 19:32:55 UTC
add this class:

public class Foo {
  public static final String name;

  static {
    
  }

  public Foo() {
    
  }
}


the constructor is incorrectly highlighted to indicate the uninitialized static 
variable instead of the static initializer block.

if there is no static initializer, the beginning of the class should probably 
be highlighted instead.
Comment 1 Jan Lahoda 2007-01-09 10:57:34 UTC
Sorry, but I do not think this is a defect - the current behavior AFAIK
corresponds to the behavior of the command line javac. I agree though, that we
could try to improve this.
Comment 2 athompson 2007-05-21 18:05:48 UTC
still present 6.0
Comment 3 athompson 2013-04-05 20:04:27 UTC
Any chance of forwarding this to the JDK guys, since it's likely something they should fix on their end?