Bug 33991 - Unreachable catch block when openning source
Summary: Unreachable catch block when openning source
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: PC Linux
: P3 critical (vote)
Target Milestone: 2.1 RC2   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-06 11:57 EST by Andrew Irvine CLA
Modified: 2003-03-19 10:46 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 Andrew Irvine CLA 2003-03-06 11:57:04 EST
Eclipse N200303060010
RH 8.0, IBM JDK 1.3.1

I install eclipse and launch a new workspace.  See bug #33987 for the first log
generated prior to importing any projects.

Turn off automatic compile
Import all projects as source required for the plugin org.eclipse.ui, except for
org.eclipse.swt and org.eclipse.swt.gtk, which are imported as binary.
Turn on compile

Now open the class PropertySheetViewer.  The following log is displayed to the
console, no log is genereated.

java.lang.Error: Unresolved compilation problem:
        Unreachable catch block

        at java.lang.reflect.Constructor.newInstance(Native Method)
        at
org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider$CompilationUnitAnnotationModel.beginReporting(CompilationUnitDocumentProvider.java:409)
        at
org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:61)
        at
org.eclipse.jdt.internal.core.JavaModelOperation.execute(JavaModelOperation.java:365)
        at
org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:681)
        at
org.eclipse.jdt.internal.core.JavaElement.runOperation(JavaElement.java:538)
        at org.eclipse.jdt.internal.core.WorkingCopy.reconcile(WorkingCopy.java:438)
        at
org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:72)
        at
org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.initialReconcile(JavaReconcilingStrategy.java:126)
        at
org.eclipse.jface.text.reconciler.MonoReconciler.initialProcess(MonoReconciler.java:104)
       at
org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:155)
Comment 1 Philipe Mulet CLA 2003-03-06 12:10:38 EST
This is a consequence of JDT/UI not having reacted to a change into JDT/Core, 
which caused the nightly build to have compile errors.

What you saw is the expected behavior when running code which had compile 
errors, and exception is thrown to remind of this issue.

(one can turn this compiler feature, i.e. if error detected then no classfile 
is produced)
Comment 2 Dirk Baeumer CLA 2003-03-06 12:15:25 EST
Got addressed for RC2.
Comment 3 Andrew Irvine CLA 2003-03-19 10:46:12 EST
I20030318