xxDark commented on code in PR #8361:
URL: https://github.com/apache/netbeans/pull/8361#discussion_r2034090585


##########
ide/o.n.agent/src-agent/org/netbeans/agent/NetBeansAgent.java:
##########
@@ -0,0 +1,50 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.netbeans.agent;
+
+import java.lang.instrument.ClassFileTransformer;
+import java.lang.instrument.Instrumentation;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * Implementation of a java agent. The JAR containing this class must be
+ * referenced by the JVM with the agent infrastructure. At time of writing this
+ * means, that the JAR must be passed via the `-javaagent:JARPATH` construct.
+ * JARPATH in this case must be the absolute path to the 
netbeans-javaagent.jar.
+ *
+ * The `premain` method in this class is then invoked by the JVM _before_ the
+ * applications main method is invoked. The agent can (re)define and
+ * (re)transform classes.

Review Comment:
   ```suggestion
    * The `premain` method in this class is then invoked by the JVM _before_ the
    * applications main method is invoked.
    ```
    
    The attributes were removed from the manifest



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org
For additional commands, e-mail: notifications-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to