ByteBuddy based enhancer not accepting special character in description names

Description

When running a prototype benchmark integrating WildFly 12 with ORM 5.3.0.CR2 we got the following exception:

1 2 3 4 5 6 java.lang.IllegalArgumentException: org/something/bla/bla/BuyerPortType contains the illegal character '/' at net.bytebuddy.pool.TypePool$AbstractBase.describe(TypePool.java:329) at net.bytebuddy.pool.TypePool$AbstractBase$Hierarchical.describe(TypePool.java:406) at org.hibernate.bytecode.enhance.internal.bytebuddy.EnhancerImpl.enhance(EnhancerImpl.java:102) at org.hibernate.jpa.internal.enhance.EnhancingClassTransformerImpl.transform(EnhancingClassTransformerImpl.java:44) at org.jboss.as.jpa.classloader.JPADelegatingClassFileTransformer.transform(JPADelegatingClassFileTransformer.java:48)

Looks like WildFly is doing something odd - not sure if we should fix this in WildFly rather than ORM - but it's probably easier in terms of compatibility if we can easily be more lenient.

Environment

None

Status

Assignee

Sanne Grinovero

Reporter

Sanne Grinovero

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

5.3.0.CR2

Priority

Blocker