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 82938 - Incorrect code in EjbJarProvider and AppClientProvider
Summary: Incorrect code in EjbJarProvider and AppClientProvider
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: EJB Project (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords: SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2006-08-17 21:33 UTC by _ pcw
Modified: 2006-08-28 09:23 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 _ pcw 2006-08-17 21:33:49 UTC
This method from EjbJarProvider.java (j2ee/ejbjarproject) seems wrong.

    public void setUrl(String url) {
        throw new UnsupportedOperationException("Cannot customize URL of web
module");
    }

I can't think of a valid reason why an error message in this file is referring
to a web module (probably copy/paste error).  Should this be localized or not?
Comment 1 Martin Krauskopf 2006-08-25 13:55:42 UTC
> probably copy/paste error

Yup, the same for Application Client.

> Should this be localized or not

I think not. They are just supposed not to be called by the code -> no message
for the user.

Comment 2 Martin Krauskopf 2006-08-25 13:57:11 UTC
clientproject/AppClientProvider.java; 1.1.4.14 -> 1.1.4.15;
ejbjarproject/EjbJarProvider.java; 1.23.36.6.2.9 -> 1.23.36.6.2.10;
Comment 3 Martin Krauskopf 2006-08-28 09:23:13 UTC
More was needed (prevents NPE when e.g. deleting project outside of IDE):

AppClientProvider.java; 1.1.4.15 -> 1.1.4.16;