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 142544 - WARNING [org.openide.loaders.InstanceDataObject]: Instance file MultiFileObject@30aaf3[Editors/text/x-java/Actions/org-netbeans-modules-java-hints-introduce-...] uses instanceCreate attribute, but doesn't define instanceClass attribute.
Summary: WARNING [org.openide.loaders.InstanceDataObject]: Instance file MultiFileObje...
Status: RESOLVED INVALID
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: David Simonek
URL:
Keywords:
Depends on:
Blocks: 142550
  Show dependency tree
 
Reported: 2008-08-01 08:56 UTC by Lukas Hasik
Modified: 2008-12-22 10:37 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Hasik 2008-08-01 08:56:08 UTC
08/01
WARNING [org.openide.loaders.InstanceDataObject]: Instance file
MultiFileObject@30aaf3[Editors/text/x-java/Actions/org-netbeans-modules-java-hints-introduce-IntroduceVariableAction.instance]
uses instanceCreate attribute, but doesn't define instanceClass attribute. Please add instanceClass attr to avoid
multiple instances creation,see details at http://www.netbeans.org/issues/show_bug.cgi?id=131951
Comment 1 Lukas Hasik 2008-08-01 08:57:21 UTC
WARNING [org.openide.loaders.InstanceDataObject]: Instance file
MultiFileObject@30aaf3[Editors/text/x-java/Actions/org-netbeans-modules-java-hints-introduce-IntroduceVariableAction.instance]
uses instanceCreate attribute, but doesn't define instanceClass attribute. Please add instanceClass attr to avoid
multiple instances creation,see details at http://www.netbeans.org/issues/show_bug.cgi?id=131951
WARNING [org.openide.loaders.InstanceDataObject]: Instance file
MultiFileObject@12769e1[Editors/text/x-java/Actions/org-netbeans-modules-java-hints-introduce-IntroduceMethodAction.instance]
uses instanceCreate attribute, but doesn't define instanceClass attribute. Please add instanceClass attr to avoid
multiple instances creation,see details at http://www.netbeans.org/issues/show_bug.cgi?id=131951
WARNING [org.openide.loaders.InstanceDataObject]: Instance file
MultiFileObject@9868b6[Editors/text/x-java/Actions/org-netbeans-modules-java-hints-introduce-IntroduceConstantAction.instance]
uses instanceCreate attribute, but doesn't define instanceClass attribute. Please add instanceClass attr to avoid
multiple instances creation,see details at http://www.netbeans.org/issues/show_bug.cgi?id=131951
WARNING [org.openide.loaders.InstanceDataObject]: Instance file
MultiFileObject@2925e[Editors/text/x-java/Actions/org-netbeans-modules-java-hints-introduce-IntroduceFieldAction.instance]
uses instanceCreate attribute, but doesn't define instanceClass attribute. Please add instanceClass attr to avoid
multiple instances creation,see details at http://www.netbeans.org/issues/show_bug.cgi?id=131951
W
Comment 2 Vitezslav Stejskal 2008-08-01 11:43:39 UTC
The 'instanceClass' attribute has never been mandatory, why is it now? And if it is now, why has not #131951 been
discussed on apireviews? Or have I missed it? There is surely tons of .instance files in XML layers (certainly under
Editors/ folder) that don't define the attribute. Some of them are trivial factories, which are easy to create and there
is no harm in creating multiple instance and garbage collecting them again. Also last time I remember Jesse talked about
common misconception of defining unnecessary 'instanceClass' attributes...

I'm sorry, but I refuse to do anything about it until this API change is properly explained.
Comment 3 Jiri Skrivanek 2008-08-25 10:11:47 UTC
Issue 131951 fixed - warning should not appear.