|
Lines 1-5
Link Here
|
| 1 |
package org.eclipse.persistence.internal.jpa.metadata.accessors.objects; |
|
|
| 2 |
|
| 3 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 4 |
* Copyright (c) 1998, 2010 Oracle, Hans Harz, Andrew Rustleund. All rights reserved. |
2 |
* Copyright (c) 1998, 2010 Oracle, Hans Harz, Andrew Rustleund. All rights reserved. |
| 5 |
* This program and the accompanying materials are made available under the |
3 |
* This program and the accompanying materials are made available under the |
|
Lines 17-23
package org.eclipse.persistence.internal.jpa.metadata.accessors.objects;
Link Here
|
| 17 |
* DatabaseSessionImpl.initializeDescriptors because @MapKey Annotation is not found. |
15 |
* DatabaseSessionImpl.initializeDescriptors because @MapKey Annotation is not found. |
| 18 |
* 04/21/2011-2.3 dclarke: Upgraded to support ASM 3.3.1 |
16 |
* 04/21/2011-2.3 dclarke: Upgraded to support ASM 3.3.1 |
| 19 |
* 08/10/2011-2.3 Lloyd Fernandes : Bug 336133 - Validation error during processing on parameterized generic OneToMany Entity relationship from MappedSuperclass |
17 |
* 08/10/2011-2.3 Lloyd Fernandes : Bug 336133 - Validation error during processing on parameterized generic OneToMany Entity relationship from MappedSuperclass |
|
|
18 |
* 10/05/2012-2.4.1 Guy Pelletier |
| 19 |
* - 373092: Exceptions using generics, embedded key and entity inheritance |
| 20 |
******************************************************************************/ |
20 |
******************************************************************************/ |
|
|
21 |
package org.eclipse.persistence.internal.jpa.metadata.accessors.objects; |
| 22 |
|
| 21 |
import java.io.IOException; |
23 |
import java.io.IOException; |
| 22 |
import java.io.InputStream; |
24 |
import java.io.InputStream; |
| 23 |
import java.util.ArrayList; |
25 |
import java.util.ArrayList; |
|
Lines 516-531
public class MetadataAsmFactory extends MetadataFactory {
Link Here
|
| 516 |
} |
518 |
} |
| 517 |
} else { |
519 |
} else { |
| 518 |
// Is a generic type variable. |
520 |
// Is a generic type variable. |
| 519 |
arguments.add(new String(new char[] { next })); |
521 |
int start = index; |
| 520 |
if((index+1) < length) { |
522 |
int end = start; |
| 521 |
if(desc.charAt(index+1)==':') { |
523 |
|
| 522 |
isGenericTyped=true; |
524 |
char myNext = next; |
| 523 |
index ++; |
525 |
|
| 524 |
arguments.add(":"); |
526 |
while (':' != myNext && end < length - 1 && '(' != myNext && ')' != myNext && '<' != myNext && '>' != myNext && ';' != myNext) { |
| 525 |
if(desc.charAt(index+1)==':') { |
527 |
end++; |
| 526 |
index ++; |
528 |
myNext = chars[end]; |
| 527 |
} |
529 |
} |
| 528 |
} |
530 |
|
|
|
531 |
if (myNext == ':') { |
| 532 |
arguments.add(desc.substring(start, end)); |
| 533 |
isGenericTyped=true; |
| 534 |
index = end; |
| 535 |
arguments.add(":"); |
| 536 |
if(desc.charAt(index+1)==':') { |
| 537 |
index ++; |
| 538 |
} |
| 539 |
} else if (myNext == ';' && next == 'T') { |
| 540 |
arguments.add(new String(new char[] { next })); |
| 541 |
arguments.add(desc.substring(start+1, end)); |
| 542 |
index = end - 1; |
| 543 |
} else { |
| 544 |
arguments.add(new String(new char[] { next })); |
| 529 |
} |
545 |
} |
| 530 |
} |
546 |
} |
| 531 |
} |
547 |
} |
| 532 |
- |
|
|