Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbvosburgh2009-04-21 13:40:28 +0000
committerbvosburgh2009-04-21 13:40:28 +0000
commit8d9a7ced3584cbe2cbb8438044dbc0aca328d3ab (patch)
tree0be91ce542f8446b1aa56fec7036dafb3d21f71a
parentdd7d461f5dc4542f23a24b36aca78570e79c9bb2 (diff)
downloadwebtools.dali-8d9a7ced3584cbe2cbb8438044dbc0aca328d3ab.tar.gz
webtools.dali-8d9a7ced3584cbe2cbb8438044dbc0aca328d3ab.tar.xz
webtools.dali-8d9a7ced3584cbe2cbb8438044dbc0aca328d3ab.zip
[272195] problems with JAR properties
-rw-r--r--jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/resource/java/binary/BinaryPersistentAttribute.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/resource/java/binary/BinaryPersistentAttribute.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/resource/java/binary/BinaryPersistentAttribute.java
index 2734c5165f..1a0cdb8319 100644
--- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/resource/java/binary/BinaryPersistentAttribute.java
+++ b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/resource/java/binary/BinaryPersistentAttribute.java
@@ -569,6 +569,10 @@ final class BinaryPersistentAttribute
}
public String getReturnTypeName() {
+ return Signature.toString(this.getReturnTypeSignature());
+ }
+
+ private String getReturnTypeSignature() {
try {
return this.method.getReturnType();
} catch (JavaModelException ex) {
@@ -604,7 +608,7 @@ final class BinaryPersistentAttribute
for (IMethod sibling : this.getSiblings()) {
String[] parmTypes = sibling.getParameterTypes();
if ((parmTypes.length == 1)
- && parmTypes[0].equals(parameterTypeName)
+ && Signature.toString(parmTypes[0]).equals(parameterTypeName)
&& sibling.getElementName().equals(name)) {
return new JPTToolsAdapter(sibling);
}

Back to the top