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 95573 - Try/catch clause code unacceptable in J2ME
Summary: Try/catch clause code unacceptable in J2ME
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-14 15:21 UTC by Lukas Hasik
Modified: 2007-11-06 18:15 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 Lukas Hasik 2007-02-14 15:21:51 UTC
070213

-the "Surround with Try/catch" generates code that isn't compilable in J2ME platform

<code>
catch (RemoteException ex) {
           
java.util.logging.Logger.getLogger("global").log(java.util.logging.Level.SEVERE,
                                                             ex.getMessage(), ex);
        }
<code>
Comment 1 Jan Lahoda 2007-02-16 07:41:33 UTC
Should be fixed:
Checking in MagicSurroundWithTryCatch.java;
/cvs/java/hints/src/org/netbeans/modules/java/hints/MagicSurroundWithTryCatch.java,v
 <--  MagicSurroundWithTryCatch.java
new revision: 1.4; previous revision: 1.3
done
Comment 2 Jesse Glick 2007-02-16 17:30:01 UTC
See issue #89330.
Comment 3 Lukas Hasik 2007-11-06 18:15:24 UTC
v