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 57653 - Can't add attributes that are named MIDlet-xxxx where xxxx is not any of the default names.
Summary: Can't add attributes that are named MIDlet-xxxx where xxxx is not any of the ...
Status: CLOSED INVALID
Alias: None
Product: javame
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Adam Sotona
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-08 08:48 UTC by hsanson
Modified: 2006-10-23 16:41 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 hsanson 2005-04-08 08:48:06 UTC
In the attributes editor (General Attributes for JAD and JAR manifest) I  
cannot add custom attributes that start with the word "MIDlet".  The default  
attributes like MIDlet-Name and MIDlet-Data-Size work fine but the phones  
I am developing for require two attributes called MIDlet-Network and  
MIDlet-OCL that are not default. The attribute editor will say "Invalid 
attribute name" and won't allow me to click ok when adding this names.  My 
solution so far is to name the attributes "MIDlets-OCL" and 
"MIDlets-Network" (see the added 's' to MIDlet) and then manually edit the 
propierties xml file of the project.  
  
It would be great if the attributes editor allowed custom values with names  
starting as MIDlet-xxxx.
Comment 1 Adam Sotona 2005-04-08 09:39:12 UTC
Entering attributes starting with MIDlet are OK except the prefix MIDlet- so
your solution MIDlets-OCL is the only can work.
Custom attributes starting with MIDlet- are not allowed according to the MIDP
specification:

>  The application descriptor MUST contain the following attributes:
>  • MIDlet-Name
>  • MIDlet-Version
>  • MIDlet-Vendor
>  • MIDlet-Jar-URL
>  • MIDlet-Jar-Size
>
>  The application descriptor MAY contain:
>  • MIDlet-Description
>  • MIDlet-Icon
>  • MIDlet-Info-URL
>  • MIDlet-Data-Size
>  • MIDlet specific attributes that do not begin with “MIDlet-”
Comment 2 Adam Sotona 2005-04-08 09:40:12 UTC
closing as invalid
Comment 3 Martin Ryzl 2005-04-08 16:06:21 UTC
is there any public specification for the device you're developing for?
Currently the IDE is very strict because we don't want to encourage bad habits
(and some devices may reject applications with such attributes at all) but if
there is a strong need for a less strict behaviour we may to change to a warning.
Comment 4 hsanson 2005-04-08 17:05:02 UTC
I develop for the three major cellphone providers in Japan (NTT, KDDI, 
VodaPhone).  Vodaphone cellphones would not download the MIDlets if the 
MIDlet-OCL attribute is not in the manifest file and the application would not 
allow network connections without the MIDlet-Network attribute.  I do need 
this attributes for my application to work on Vodaphone cellphones. 
Comment 5 Lukas Hasik 2006-01-17 13:57:36 UTC
verifying all old issues