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 99000

Summary: Wrong name of Class when you create Visual MIdlet
Product: java Reporter: Fabiola Rios <fabiola>
Component: SourceAssignee: Pavel Flaska <pflaska>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 98171    
Attachments: Silently discarded exception

Description Fabiola Rios 2007-03-26 15:50:33 UTC
build 20070326

Create new Visual MIDlet, introduce any name.
Finish, go to source
the name of the class, and constructor is still named VisualMIDlet.
Comment 1 David Kaspar 2007-03-26 20:54:41 UTC
Looks like it is not caused by mobility. During file creating an exception is
shown (and silently discarded). The exception shown a IllegalArgmumentException
at  java source - casual diff.
Comment 2 David Kaspar 2007-03-26 20:55:46 UTC
Created attachment 39974 [details]
Silently discarded exception
Comment 3 Jan Lahoda 2007-03-27 08:24:02 UTC
Pavle, could you please take a look on this? This is a showstopper for M8. Thanks.
Comment 4 Lukas Hasik 2007-03-27 14:29:40 UTC
*** Issue 98997 has been marked as a duplicate of this issue. ***
Comment 5 Pavel Flaska 2007-03-27 15:18:39 UTC
Fixed in trunk and release60-m8 branch.

Checking in src/org/netbeans/modules/java/source/save/PositionEstimator.java;
/cvs/java/source/src/org/netbeans/modules/java/source/save/PositionEstimator.java,v
 <--  PositionEstimator.java
new revision: 1.16.2.1; previous revision: 1.16
done
Checking in test/unit/src/org/netbeans/api/java/source/gen/ClassMemberTest.java;
/cvs/java/source/test/unit/src/org/netbeans/api/java/source/gen/ClassMemberTest.java,v
 <--  ClassMemberTest.java
new revision: 1.17.2.1; previous revision: 1.17
done

Checking in src/org/netbeans/modules/java/source/save/PositionEstimator.java;
/cvs/java/source/src/org/netbeans/modules/java/source/save/PositionEstimator.java,v
 <--  PositionEstimator.java
new revision: 1.17; previous revision: 1.16
done
Checking in test/unit/src/org/netbeans/api/java/source/gen/ClassMemberTest.java;
/cvs/java/source/test/unit/src/org/netbeans/api/java/source/gen/ClassMemberTest.java,v
 <--  ClassMemberTest.java
new revision: 1.19; previous revision: 1.18
done

Comment 6 Lukas Hasik 2007-03-27 15:25:04 UTC
tested with jars provided by pavel -> it works.
Comment 7 Fabiola Rios 2007-03-28 09:25:22 UTC
verified build 20070328