[JBoss JIRA] (DROOLS-926) Missing synchronization in PackageClassLoader causes a LinkageError: duplicate class definition
by Mario Fusco (JIRA)
[ https://issues.jboss.org/browse/DROOLS-926?page=com.atlassian.jira.plugin... ]
Mario Fusco commented on DROOLS-926:
------------------------------------
Upgrade to 6.3.0.Final, it is fixed there.
> Missing synchronization in PackageClassLoader causes a LinkageError: duplicate class definition
> -----------------------------------------------------------------------------------------------
>
> Key: DROOLS-926
> URL: https://issues.jboss.org/browse/DROOLS-926
> Project: Drools
> Issue Type: Bug
> Reporter: Mario Fusco
> Assignee: Mario Fusco
> Fix For: 6.3.0.Final
>
>
> Creating multiple KieSessions from a KieBase with a function and using them concurrently from different threads may lead to the following error
> java.util.concurrent.ExecutionException: java.lang.LinkageError: loader (instance of org/drools/core/rule/JavaDialectRuntimeData$PackageClassLoader): attempted duplicate class definition for name: "defaultpkg/IsEven"
> at java.util.concurrent.FutureTask.report(FutureTask.java:122)
> at java.util.concurrent.FutureTask.get(FutureTask.java:188)
> at org.drools.compiler.integrationtests.Misc2Test.testFunctionInvokingFunction(Misc2Test.java:8191)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
> at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
> at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
> at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
> at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
> at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
> at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:78)
> at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:212)
> at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:68)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
> Caused by: java.lang.LinkageError: loader (instance of org/drools/core/rule/JavaDialectRuntimeData$PackageClassLoader): attempted duplicate class definition for name: "defaultpkg/IsEven"
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
> at org.drools.core.rule.JavaDialectRuntimeData$PackageClassLoader.fastFindClass(JavaDialectRuntimeData.java:673)
> at org.drools.core.rule.JavaDialectRuntimeData$PackageClassLoader.loadClass(JavaDialectRuntimeData.java:639)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
> at org.drools.core.rule.MVELDialectRuntimeData.getParserConfiguration(MVELDialectRuntimeData.java:299)
> at org.drools.core.base.mvel.MVELCompilationUnit.getCompiledExpression(MVELCompilationUnit.java:214)
> at org.drools.core.rule.constraint.MvelConstraint.createMvelConditionEvaluator(MvelConstraint.java:254)
> at org.drools.core.rule.constraint.MvelConstraint.evaluate(MvelConstraint.java:238)
> at org.drools.core.rule.constraint.MvelConstraint.isAllowed(MvelConstraint.java:204)
> at org.drools.core.reteoo.AlphaNode.assertObject(AlphaNode.java:141)
> at org.drools.core.reteoo.SingleObjectSinkAdapter.propagateAssertObject(SingleObjectSinkAdapter.java:60)
> at org.drools.core.reteoo.ObjectTypeNode.propagateAssert(ObjectTypeNode.java:298)
> at org.drools.core.phreak.PropagationEntry$Insert.execute(PropagationEntry.java:93)
> at org.drools.core.phreak.SynchronizedPropagationList.flush(SynchronizedPropagationList.java:96)
> at org.drools.core.phreak.SynchronizedPropagationList.flush(SynchronizedPropagationList.java:69)
> at org.drools.core.impl.StatefulKnowledgeSessionImpl.flushPropagations(StatefulKnowledgeSessionImpl.java:1993)
> at org.drools.core.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1289)
> at org.drools.core.impl.StatefulKnowledgeSessionImpl.internalFireAllRules(StatefulKnowledgeSessionImpl.java:1294)
> at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1281)
> at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1260)
> at org.drools.compiler.integrationtests.Misc2Test$11.call(Misc2Test.java:8180)
> at org.drools.compiler.integrationtests.Misc2Test$11.call(Misc2Test.java:8170)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 7 months
[JBoss JIRA] (DROOLS-926) Missing synchronization in PackageClassLoader causes a LinkageError: duplicate class definition
by Mario Fusco (JIRA)
[ https://issues.jboss.org/browse/DROOLS-926?page=com.atlassian.jira.plugin... ]
Mario Fusco updated DROOLS-926:
-------------------------------
Fix Version/s: 6.3.0.Final
(was: 7.0.0.Final)
> Missing synchronization in PackageClassLoader causes a LinkageError: duplicate class definition
> -----------------------------------------------------------------------------------------------
>
> Key: DROOLS-926
> URL: https://issues.jboss.org/browse/DROOLS-926
> Project: Drools
> Issue Type: Bug
> Reporter: Mario Fusco
> Assignee: Mario Fusco
> Fix For: 6.3.0.Final
>
>
> Creating multiple KieSessions from a KieBase with a function and using them concurrently from different threads may lead to the following error
> java.util.concurrent.ExecutionException: java.lang.LinkageError: loader (instance of org/drools/core/rule/JavaDialectRuntimeData$PackageClassLoader): attempted duplicate class definition for name: "defaultpkg/IsEven"
> at java.util.concurrent.FutureTask.report(FutureTask.java:122)
> at java.util.concurrent.FutureTask.get(FutureTask.java:188)
> at org.drools.compiler.integrationtests.Misc2Test.testFunctionInvokingFunction(Misc2Test.java:8191)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
> at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
> at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
> at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
> at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
> at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
> at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:78)
> at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:212)
> at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:68)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
> Caused by: java.lang.LinkageError: loader (instance of org/drools/core/rule/JavaDialectRuntimeData$PackageClassLoader): attempted duplicate class definition for name: "defaultpkg/IsEven"
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
> at org.drools.core.rule.JavaDialectRuntimeData$PackageClassLoader.fastFindClass(JavaDialectRuntimeData.java:673)
> at org.drools.core.rule.JavaDialectRuntimeData$PackageClassLoader.loadClass(JavaDialectRuntimeData.java:639)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
> at org.drools.core.rule.MVELDialectRuntimeData.getParserConfiguration(MVELDialectRuntimeData.java:299)
> at org.drools.core.base.mvel.MVELCompilationUnit.getCompiledExpression(MVELCompilationUnit.java:214)
> at org.drools.core.rule.constraint.MvelConstraint.createMvelConditionEvaluator(MvelConstraint.java:254)
> at org.drools.core.rule.constraint.MvelConstraint.evaluate(MvelConstraint.java:238)
> at org.drools.core.rule.constraint.MvelConstraint.isAllowed(MvelConstraint.java:204)
> at org.drools.core.reteoo.AlphaNode.assertObject(AlphaNode.java:141)
> at org.drools.core.reteoo.SingleObjectSinkAdapter.propagateAssertObject(SingleObjectSinkAdapter.java:60)
> at org.drools.core.reteoo.ObjectTypeNode.propagateAssert(ObjectTypeNode.java:298)
> at org.drools.core.phreak.PropagationEntry$Insert.execute(PropagationEntry.java:93)
> at org.drools.core.phreak.SynchronizedPropagationList.flush(SynchronizedPropagationList.java:96)
> at org.drools.core.phreak.SynchronizedPropagationList.flush(SynchronizedPropagationList.java:69)
> at org.drools.core.impl.StatefulKnowledgeSessionImpl.flushPropagations(StatefulKnowledgeSessionImpl.java:1993)
> at org.drools.core.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1289)
> at org.drools.core.impl.StatefulKnowledgeSessionImpl.internalFireAllRules(StatefulKnowledgeSessionImpl.java:1294)
> at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1281)
> at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1260)
> at org.drools.compiler.integrationtests.Misc2Test$11.call(Misc2Test.java:8180)
> at org.drools.compiler.integrationtests.Misc2Test$11.call(Misc2Test.java:8170)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 7 months
[JBoss JIRA] (DROOLS-926) Missing synchronization in PackageClassLoader causes a LinkageError: duplicate class definition
by René Zanner (JIRA)
[ https://issues.jboss.org/browse/DROOLS-926?page=com.atlassian.jira.plugin... ]
René Zanner commented on DROOLS-926:
------------------------------------
We are facing this issue in version 6.2.0.Final. Do you plan a backport to the 6.x versions?
> Missing synchronization in PackageClassLoader causes a LinkageError: duplicate class definition
> -----------------------------------------------------------------------------------------------
>
> Key: DROOLS-926
> URL: https://issues.jboss.org/browse/DROOLS-926
> Project: Drools
> Issue Type: Bug
> Reporter: Mario Fusco
> Assignee: Mario Fusco
> Fix For: 7.0.0.Final
>
>
> Creating multiple KieSessions from a KieBase with a function and using them concurrently from different threads may lead to the following error
> java.util.concurrent.ExecutionException: java.lang.LinkageError: loader (instance of org/drools/core/rule/JavaDialectRuntimeData$PackageClassLoader): attempted duplicate class definition for name: "defaultpkg/IsEven"
> at java.util.concurrent.FutureTask.report(FutureTask.java:122)
> at java.util.concurrent.FutureTask.get(FutureTask.java:188)
> at org.drools.compiler.integrationtests.Misc2Test.testFunctionInvokingFunction(Misc2Test.java:8191)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
> at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
> at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
> at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
> at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
> at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
> at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:78)
> at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:212)
> at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:68)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
> Caused by: java.lang.LinkageError: loader (instance of org/drools/core/rule/JavaDialectRuntimeData$PackageClassLoader): attempted duplicate class definition for name: "defaultpkg/IsEven"
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
> at org.drools.core.rule.JavaDialectRuntimeData$PackageClassLoader.fastFindClass(JavaDialectRuntimeData.java:673)
> at org.drools.core.rule.JavaDialectRuntimeData$PackageClassLoader.loadClass(JavaDialectRuntimeData.java:639)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
> at org.drools.core.rule.MVELDialectRuntimeData.getParserConfiguration(MVELDialectRuntimeData.java:299)
> at org.drools.core.base.mvel.MVELCompilationUnit.getCompiledExpression(MVELCompilationUnit.java:214)
> at org.drools.core.rule.constraint.MvelConstraint.createMvelConditionEvaluator(MvelConstraint.java:254)
> at org.drools.core.rule.constraint.MvelConstraint.evaluate(MvelConstraint.java:238)
> at org.drools.core.rule.constraint.MvelConstraint.isAllowed(MvelConstraint.java:204)
> at org.drools.core.reteoo.AlphaNode.assertObject(AlphaNode.java:141)
> at org.drools.core.reteoo.SingleObjectSinkAdapter.propagateAssertObject(SingleObjectSinkAdapter.java:60)
> at org.drools.core.reteoo.ObjectTypeNode.propagateAssert(ObjectTypeNode.java:298)
> at org.drools.core.phreak.PropagationEntry$Insert.execute(PropagationEntry.java:93)
> at org.drools.core.phreak.SynchronizedPropagationList.flush(SynchronizedPropagationList.java:96)
> at org.drools.core.phreak.SynchronizedPropagationList.flush(SynchronizedPropagationList.java:69)
> at org.drools.core.impl.StatefulKnowledgeSessionImpl.flushPropagations(StatefulKnowledgeSessionImpl.java:1993)
> at org.drools.core.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1289)
> at org.drools.core.impl.StatefulKnowledgeSessionImpl.internalFireAllRules(StatefulKnowledgeSessionImpl.java:1294)
> at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1281)
> at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1260)
> at org.drools.compiler.integrationtests.Misc2Test$11.call(Misc2Test.java:8180)
> at org.drools.compiler.integrationtests.Misc2Test$11.call(Misc2Test.java:8170)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 7 months
[JBoss JIRA] (DROOLS-1006) License header: replace Jboss Inc by Red Hat, Inc. and/or its affiliates.
by Geoffrey De Smet (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1006?page=com.atlassian.jira.plugi... ]
Geoffrey De Smet commented on DROOLS-1006:
------------------------------------------
When this is all done, I 'd also recommend to search for the regex "Copyright.*JBoss" case insensitive to see if there are any other historic variants.
> License header: replace Jboss Inc by Red Hat, Inc. and/or its affiliates.
> -------------------------------------------------------------------------
>
> Key: DROOLS-1006
> URL: https://issues.jboss.org/browse/DROOLS-1006
> Project: Drools
> Issue Type: Task
> Affects Versions: 6.3.0.Final
> Reporter: Geoffrey De Smet
> Assignee: Michael Biarnes Kiefer
>
> All developers have been notified to change their header, so all new files will use the new header.
> This jira is to fix the existing files.
> 1) In java, drl, js and css files, replace in path this Case Sensitive Regular Expression in IntelliJ:
> {code}
> ^/\*\n \* Copyright (\d{4}) JBoss Inc\n
> {code}
> by with this
> {code}
> /*\n * Copyright $1 Red Hat, Inc. and/or its affiliates.\n
> {code}
> To understand the regex, read this:
> https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html
> Commit that already before starting step 2. I even recommend doing a separate commit per file type. (But wait with pushing until all are fixed.)
> 2) Then look for the string "JBoss Inc" in all files, case insensitive. Fix those too if applicable. Either by another smart regex find-replace or manually.
> 3) Do step 1) and step 2) again for "JBoss by Red Hat." instead of "JBoss Inc"
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 7 months
[JBoss JIRA] (DROOLS-1006) License header: replace Jboss Inc by Red Hat, Inc. and/or its affiliates.
by Geoffrey De Smet (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1006?page=com.atlassian.jira.plugi... ]
Geoffrey De Smet edited comment on DROOLS-1006 at 12/15/15 4:25 AM:
--------------------------------------------------------------------
Fixed for optaplanner repositories (not optaplanner-wb, please do that one too):
http://github.com/droolsjbpm/optaplanner/compare/a41d1d6...44b58ca
http://github.com/droolsjbpm/optaplanner-training/commit/d508daf11
http://github.com/droolsjbpm/optaplanner-website/compare/bb3ff86...5283a15
and also
http://github.com/droolsjbpm/optaplanner/commit/4bf25c709
was (Author: ge0ffrey):
Fixed for optaplanner repositories (not optaplanner-wb, please do that one too):
http://github.com/droolsjbpm/optaplanner/compare/a41d1d6...44b58ca
http://github.com/droolsjbpm/optaplanner-training/commit/d508daf11
http://github.com/droolsjbpm/optaplanner-website/compare/bb3ff86...5283a15
> License header: replace Jboss Inc by Red Hat, Inc. and/or its affiliates.
> -------------------------------------------------------------------------
>
> Key: DROOLS-1006
> URL: https://issues.jboss.org/browse/DROOLS-1006
> Project: Drools
> Issue Type: Task
> Affects Versions: 6.3.0.Final
> Reporter: Geoffrey De Smet
> Assignee: Michael Biarnes Kiefer
>
> All developers have been notified to change their header, so all new files will use the new header.
> This jira is to fix the existing files.
> 1) In java, drl, js and css files, replace in path this Case Sensitive Regular Expression in IntelliJ:
> {code}
> ^/\*\n \* Copyright (\d{4}) JBoss Inc\n
> {code}
> by with this
> {code}
> /*\n * Copyright $1 Red Hat, Inc. and/or its affiliates.\n
> {code}
> To understand the regex, read this:
> https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html
> Commit that already before starting step 2. I even recommend doing a separate commit per file type. (But wait with pushing until all are fixed.)
> 2) Then look for the string "JBoss Inc" in all files, case insensitive. Fix those too if applicable. Either by another smart regex find-replace or manually.
> 3) Do step 1) and step 2) again for "JBoss by Red Hat." instead of "JBoss Inc"
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 7 months
[JBoss JIRA] (DROOLS-1006) License header: replace Jboss Inc by Red Hat, Inc. and/or its affiliates.
by Geoffrey De Smet (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1006?page=com.atlassian.jira.plugi... ]
Geoffrey De Smet updated DROOLS-1006:
-------------------------------------
Description:
All developers have been notified to change their header, so all new files will use the new header.
This jira is to fix the existing files.
1) In java, drl, js and css files, replace in path this Case Sensitive Regular Expression in IntelliJ:
{code}
^/\*\n \* Copyright (\d{4}) JBoss Inc\n
{code}
by with this
{code}
/*\n * Copyright $1 Red Hat, Inc. and/or its affiliates.\n
{code}
To understand the regex, read this:
https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html
Commit that already before starting step 2. I even recommend doing a separate commit per file type. (But wait with pushing until all are fixed.)
2) Then look for the string "JBoss Inc" in all files, case insensitive. Fix those too if applicable. Either by another smart regex find-replace or manually.
3) Do step 1) and step 2) again for "JBoss by Red Hat." instead of "JBoss Inc"
was:
All developers have been notified to change their header, so all new files will use the new header.
This jira is to fix the existing files.
1) In java, drl, js and css files, replace in path this Case Sensitive Regular Expression in IntelliJ:
{code}
^/\*\n \* Copyright (\d{4}) JBoss Inc\n
{code}
by with this
{code}
/*\n * Copyright $1 Red Hat, Inc. and/or its affiliates.\n
{code}
To understand the regex, read this:
https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html
Commit that already before starting step 2. I even recommend doing a separate commit per file type. (But wait with pushing until all are fixed.)
2) Then look for the string "JBoss Inc" in all files, case insensitive. Fix those too if applicable. Either by another smart regex find-replace or manually.
> License header: replace Jboss Inc by Red Hat, Inc. and/or its affiliates.
> -------------------------------------------------------------------------
>
> Key: DROOLS-1006
> URL: https://issues.jboss.org/browse/DROOLS-1006
> Project: Drools
> Issue Type: Task
> Affects Versions: 6.3.0.Final
> Reporter: Geoffrey De Smet
> Assignee: Michael Biarnes Kiefer
>
> All developers have been notified to change their header, so all new files will use the new header.
> This jira is to fix the existing files.
> 1) In java, drl, js and css files, replace in path this Case Sensitive Regular Expression in IntelliJ:
> {code}
> ^/\*\n \* Copyright (\d{4}) JBoss Inc\n
> {code}
> by with this
> {code}
> /*\n * Copyright $1 Red Hat, Inc. and/or its affiliates.\n
> {code}
> To understand the regex, read this:
> https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html
> Commit that already before starting step 2. I even recommend doing a separate commit per file type. (But wait with pushing until all are fixed.)
> 2) Then look for the string "JBoss Inc" in all files, case insensitive. Fix those too if applicable. Either by another smart regex find-replace or manually.
> 3) Do step 1) and step 2) again for "JBoss by Red Hat." instead of "JBoss Inc"
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 7 months
[JBoss JIRA] (DROOLS-1006) License header: replace Jboss Inc by Red Hat, Inc. and/or its affiliates.
by Geoffrey De Smet (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1006?page=com.atlassian.jira.plugi... ]
Geoffrey De Smet updated DROOLS-1006:
-------------------------------------
Description:
All developers have been notified to change their header, so all new files will use the new header.
This jira is to fix the existing files.
1) In java, drl, js and css files, replace in path this Case Sensitive Regular Expression in IntelliJ:
{code}
^/\*\n \* Copyright (\d{4}) JBoss Inc\n
{code}
by with this
{code}
/*\n * Copyright $1 Red Hat, Inc. and/or its affiliates.\n
{code}
To understand the regex, read this:
https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html
Commit that already before starting step 2. I even recommend doing a separate commit per file type. (But wait with pushing until all are fixed.)
2) Then look for the string "JBoss Inc" in all files, case insensitive. Fix those too if applicable. Either by another smart regex find-replace or manually.
was:
All developers have been notified to change their header, so all new file will use the new header.
This jira is to fix the existing files.
1) In java, drl, js and css files, replace in path this Case Sensitive Regular Expression in IntelliJ:
{code}
^/\*\n \* Copyright (\d{4}) JBoss Inc\n
{code}
by with this
{code}
/*\n * Copyright $1 Red Hat, Inc. and/or its affiliates.\n
{code}
To understand the regex, read this:
https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html
Commit that already before starting step 2. I even recommend doing a separate commit per file type. (But wait with pushing until all are fixed.)
2) Then look for the string "JBoss Inc" in all files, case insensitive. Fix those too if applicable. Either by another smart regex find-replace or manually.
> License header: replace Jboss Inc by Red Hat, Inc. and/or its affiliates.
> -------------------------------------------------------------------------
>
> Key: DROOLS-1006
> URL: https://issues.jboss.org/browse/DROOLS-1006
> Project: Drools
> Issue Type: Task
> Affects Versions: 6.3.0.Final
> Reporter: Geoffrey De Smet
> Assignee: Michael Biarnes Kiefer
>
> All developers have been notified to change their header, so all new files will use the new header.
> This jira is to fix the existing files.
> 1) In java, drl, js and css files, replace in path this Case Sensitive Regular Expression in IntelliJ:
> {code}
> ^/\*\n \* Copyright (\d{4}) JBoss Inc\n
> {code}
> by with this
> {code}
> /*\n * Copyright $1 Red Hat, Inc. and/or its affiliates.\n
> {code}
> To understand the regex, read this:
> https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html
> Commit that already before starting step 2. I even recommend doing a separate commit per file type. (But wait with pushing until all are fixed.)
> 2) Then look for the string "JBoss Inc" in all files, case insensitive. Fix those too if applicable. Either by another smart regex find-replace or manually.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 7 months
[JBoss JIRA] (DROOLS-1006) License header: replace Jboss Inc by Red Hat, Inc. and/or its affiliates.
by Geoffrey De Smet (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1006?page=com.atlassian.jira.plugi... ]
Geoffrey De Smet commented on DROOLS-1006:
------------------------------------------
Fixed for optaplanner repositories (not optaplanner-wb, please do that one too):
http://github.com/droolsjbpm/optaplanner/compare/a41d1d6...44b58ca
http://github.com/droolsjbpm/optaplanner-training/commit/d508daf11
http://github.com/droolsjbpm/optaplanner-website/compare/bb3ff86...5283a15
> License header: replace Jboss Inc by Red Hat, Inc. and/or its affiliates.
> -------------------------------------------------------------------------
>
> Key: DROOLS-1006
> URL: https://issues.jboss.org/browse/DROOLS-1006
> Project: Drools
> Issue Type: Task
> Affects Versions: 6.3.0.Final
> Reporter: Geoffrey De Smet
> Assignee: Michael Biarnes Kiefer
>
> All developers have been notified to change their header, so all new file will use the new header.
> This jira is to fix the existing files.
> 1) In java, drl, js and css files, replace in path this Case Sensitive Regular Expression in IntelliJ:
> {code}
> ^/\*\n \* Copyright (\d{4}) JBoss Inc\n
> {code}
> by with this
> {code}
> /*\n * Copyright $1 Red Hat, Inc. and/or its affiliates.\n
> {code}
> To understand the regex, read this:
> https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html
> Commit that already before starting step 2. I even recommend doing a separate commit per file type. (But wait with pushing until all are fixed.)
> 2) Then look for the string "JBoss Inc" in all files, case insensitive. Fix those too if applicable. Either by another smart regex find-replace or manually.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 7 months
[JBoss JIRA] (DROOLS-1006) License header: replace Jboss Inc by Red Hat, Inc. and/or its affiliates.
by Geoffrey De Smet (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1006?page=com.atlassian.jira.plugi... ]
Geoffrey De Smet updated DROOLS-1006:
-------------------------------------
Description:
All developers have been notified to change their header, so all new file will use the new header.
This jira is to fix the existing files.
1) In java, drl, js and css files, replace in path this Case Sensitive Regular Expression in IntelliJ:
{code}
^/\*\n \* Copyright (\d{4}) JBoss Inc\n
{code}
by with this
{code}
/*\n * Copyright $1 Red Hat, Inc. and/or its affiliates.\n
{code}
To understand the regex, read this:
https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html
Commit that already before starting step 2. I even recommend doing a separate commit per file type. (But wait with pushing until all are fixed.)
2) Then look for the string "JBoss Inc" in all files, case insensitive. Fix those too if applicable. Either by another smart regex find-replace or manually.
was:
1) In java, drl, js and css files, replace in path this Case Sensitive Regular Expression in IntelliJ:
{code}
^/\*\n \* Copyright (\d{4}) JBoss Inc\n
{code}
by with this
{code}
/*\n * Copyright $1 Red Hat, Inc. and/or its affiliates.\n
{code}
To understand the regex, read this:
https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html
Commit that already before starting step 2. I even recommend doing a separate commit per file type. (But wait with pushing until all are fixed.)
2) Then look for the string "JBoss Inc" in all files, case insensitive. Fix those too if applicable. Either by another smart regex find-replace or manually.
> License header: replace Jboss Inc by Red Hat, Inc. and/or its affiliates.
> -------------------------------------------------------------------------
>
> Key: DROOLS-1006
> URL: https://issues.jboss.org/browse/DROOLS-1006
> Project: Drools
> Issue Type: Task
> Affects Versions: 6.3.0.Final
> Reporter: Geoffrey De Smet
> Assignee: Michael Biarnes Kiefer
>
> All developers have been notified to change their header, so all new file will use the new header.
> This jira is to fix the existing files.
> 1) In java, drl, js and css files, replace in path this Case Sensitive Regular Expression in IntelliJ:
> {code}
> ^/\*\n \* Copyright (\d{4}) JBoss Inc\n
> {code}
> by with this
> {code}
> /*\n * Copyright $1 Red Hat, Inc. and/or its affiliates.\n
> {code}
> To understand the regex, read this:
> https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html
> Commit that already before starting step 2. I even recommend doing a separate commit per file type. (But wait with pushing until all are fixed.)
> 2) Then look for the string "JBoss Inc" in all files, case insensitive. Fix those too if applicable. Either by another smart regex find-replace or manually.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 7 months