[Bug libgcj/19677] New: invalid "may not have been initialized" error

wasabi at larvalstage dot net gcc-bugzilla@gcc.gnu.org
Fri Jan 28 19:21:00 GMT 2005


Following Eclipse code snippet that fails:

protected void join(InternalJob job) {
	final IJobChangeListener listener;

	synchronized (lock) {
		listener = new JobChangeAdapter() {
			public void done(IJobChangeEvent event) {
				barrier.release();
			}
		};
		job.addJobChangeListener(listener);
	}
}

The error reports the line containing listener = as the problem.

-- 
           Summary: invalid "may not have been initialized" error
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: wasabi at larvalstage dot net
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19677



More information about the Java-prs mailing list