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 6903 - org.openide.loaders.DataObject.createFromTemplate() throws IOException if name parameter is set to 'null'
Summary: org.openide.loaders.DataObject.createFromTemplate() throws IOException if nam...
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: All All
: P2 normal (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-06-27 08:53 UTC by Jan Becicka
Modified: 2007-09-26 09:14 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 Jan Becicka 2000-06-27 08:53:49 UTC
Exception is thrown, instead of generating new name.


java.io.IOException: The specified name is not valid for use on a Java source
file: null
        at
org.netbeans.modules.java.JavaDataObject.handleCreateFromTemplate(JavaDataObject
.java:478)
        at org.openide.loaders.DataObject$6.run(DataObject.java:636)
        at
org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:353)
        at
org.openide.loaders.DataObject.createFromTemplate(DataObject.java:634)
        at
org.openide.loaders.DataObject.createFromTemplate(DataObject.java:616)
        at org.netbeans.beci.parser.apitest.Common.createClass(Common.java:281)
        at org.netbeans.beci.parser.apitest.Pokus.main(Pokus.java:63)
        at java.lang.reflect.Method.invoke(Native Method)
        at
org.openide.execution.ThreadExecutor.executeClass(ThreadExecutor.java:132)
        at
org.openide.execution.ThreadExecutor$TERunnable.run(ThreadExecutor.java:206)
        at
org.netbeans.core.execution.ExecutionEngine$RunClass.run(ExecutionEngine.java:41
7)
Comment 1 Svata Dedic 2000-06-27 08:59:59 UTC
This behaviour does not conform to the OpenAPI specification which explictly
states that null is a legal value for createFromTemplate().
Comment 2 Quality Engineering 2003-07-01 13:18:21 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.