Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 58639 Details for
Bug 158317
JUnit execution fails if the source is generated into the default package.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Fix
patch158317.txt (text/plain), 1.87 KB, created by
Nédélec Patrick
on 2007-02-09 04:52:26 EST
(
hide
)
Description:
Fix
Filename:
MIME Type:
Creator:
Nédélec Patrick
Created:
2007-02-09 04:52:26 EST
Size:
1.87 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.hyades.test.tools.core >Index: src/org/eclipse/hyades/test/tools/core/internal/common/codegen/Helper.java >=================================================================== >RCS file: /cvsroot/tptp/test/org.eclipse.hyades.test.tools.core/src/org/eclipse/hyades/test/tools/core/internal/common/codegen/Helper.java,v >retrieving revision 1.12 >diff -u -r1.12 Helper.java >--- src/org/eclipse/hyades/test/tools/core/internal/common/codegen/Helper.java 9 Feb 2007 09:42:38 -0000 1.12 >+++ src/org/eclipse/hyades/test/tools/core/internal/common/codegen/Helper.java 9 Feb 2007 09:48:07 -0000 >@@ -1,10 +1,10 @@ > /********************************************************************** >- * Copyright (c) 2005, 2006 IBM Corporation and others. >+ * Copyright (c) 2005, 2007 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at > * http://www.eclipse.org/legal/epl-v10.html >- * $Id: Helper.java,v 1.12 2007/02/09 09:42:38 pnedelec Exp $ >+ * $Id: Helper.java,v 1.11 2007/02/08 17:12:20 pnedelec Exp $ > * > * Contributors: > * IBM - Initial API and implementation >@@ -173,9 +173,11 @@ > > if(deployableComponent != null) > { >- String newName = getPackageName(deployableComponent) + "." + name; //$NON-NLS-1$ >- if(!newName.equals(deployableComponent.getResource())) >- deployableComponent.setResource(newName); >+ String packageName = getPackageName(deployableComponent); >+ String newName = packageName.length() > 0 ? packageName + "." + name : name; //$NON-NLS-1$ >+ if (!newName.equals(deployableComponent.getResource())) { >+ deployableComponent.setResource(newName); >+ } > } > return name; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 158317
: 58639