Skip to content

Commit

Permalink
[Lara-JS] Uses the class of the Java join point to obtain the JS join…
Browse files Browse the repository at this point in the history
… point
  • Loading branch information
joaobispo committed Aug 2, 2024
1 parent 7592886 commit 556b13e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Lara-JS/src-api/LaraJoinPoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,10 @@ export function wrapJoinPoint(obj: any): any {
);
}

const jpType: string = obj.getJoinPointType();
// Get join point type from name of the Java class, since getJoinPointType() might
// not always correspond to the actual join point class (e.g., anyweaver)
const jpType: string = obj.get_class();

for (const mapper of JoinpointMappers) {
if (mapper[jpType]) {
return new mapper[jpType](obj);
Expand Down
4 changes: 3 additions & 1 deletion LaraApi/src-lara/LaraJoinPoint.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 556b13e

Please sign in to comment.