Using getName instead of getCanonicalName to obtain class names

Description

The getCanonicalName() can cause problems (see exception) when handling inner or nested classes, thus, we are using getName() instead, which is already used in many places.

Environment

None

Activity

Show:
Ivan Senic
January 12, 2017, 2:47 PM

This is also a reason for:

  • Inner classes can not be re-transformed as they are missed

  • Inner classes that are part of self-first classes are also missed in the JavaAgent

Technical User
January 16, 2017, 8:05 AM

FAILURE: Integrated in

inspectIT - Integration #248
INSPECTIT-2306: Using getName instead of getCanonicalName to obtain (ivan.senic: ec690d6bb06531673021522daf78f363a9397bc5)

  • (edit) inspectit.agent.java/src/main/java/rocks/inspectit/agent/java/sensor/method/http/HttpInformationExtractor.java

  • (edit) inspectit.agent.java/src/test/java/rocks/inspectit/agent/java/instrumentation/asm/TestClass.java

  • (edit) inspectit.agent.java/src/main/java/rocks/inspectit/agent/java/sensor/method/invocationsequence/InvocationSequenceHook.java

  • (edit) inspectit.agent.java/src/jmh/java/rocks/inspectit/agent/java/instrumentation/asm/ClassInstrumenterPerfTest.java

  • (edit) inspectit.server/src/main/java/rocks/inspectit/server/spring/exporter/RemotingExporter.java

  • (edit) inspectit.agent.java/src/test/java/rocks/inspectit/agent/java/util/ClassUtilTest.java

  • (edit) inspectit.agent.java/src/main/java/rocks/inspectit/agent/java/instrumentation/RetransformManager.java

  • (edit) inspectit.shared.all/src/test/java/rocks/inspectit/shared/all/testbase/TestBase.java

  • (edit) inspectit.agent.java/src/main/java/rocks/inspectit/agent/java/util/ClassUtil.java

  • (edit) inspectit.agent.java/src/test/java/rocks/inspectit/agent/java/instrumentation/RetransformManagerTest.java

  • (edit) inspectit.agent.java/src/main/java/rocks/inspectit/agent/java/sensor/platform/AbstractPlatformSensor.java

  • (edit) inspectit.shared.all/src/main/java/rocks/inspectit/shared/all/exception/RemoteException.java

  • (edit) inspectit.agent.java/src/test/java/rocks/inspectit/agent/java/sensor/method/invocationsequence/InvocationSequenceHookTest.java

  • (edit) inspectit.agent.java/src/test/java/rocks/inspectit/agent/java/instrumentation/asm/ClassAnalyzerTest.java

  • (edit) inspectit.agent.java/src/main/java/rocks/inspectit/agent/java/javaagent/JavaAgent.java

  • (edit) inspectit.ui.rcp/src/main/java/rocks/inspectit/ui/rcp/editor/table/input/HttpTimerDataInputController.java

Fixed

Assignee

Marius Oehler

Reporter

Marius Oehler

Labels

None

Integrator

Ivan Senic

Sprint

None

Fix versions

Priority

High
Configure