name-clash Questions

3

Solved

I have some simple models, Profile, Certifier and Designer, the two latter inheriting from Profile (multi table inheritance). In Designer there’s a foreign key to Certifier. class Profile(models.Mo...
Elishaelision asked 4/12, 2015 at 10:56

1

Solved

I am developing a project in which I have a vendor library, say vendor.h, for the specific Arduino-compatible board I'm using which defines class HTTPClient that conflicts with an Arduino system li...
Ebb asked 8/6, 2020 at 19:41

3

Solved

Please consider the following Python modules excerpts: foo.py: class Foo: (...) bar.py: import foo foo = foo.Foo() The variable foo, which was a module object, is overwritten with a Foo ob...
Brockie asked 3/4, 2013 at 23:5

0

When installing packages from PyPI, you have to use the name of the project, which is different from the name of the top-level packages which you will actually import. A clear example is pyserial a...
Madelyn asked 10/1, 2020 at 13:50

1

Solved

I'm trying to understand the name clash error I get with the following code: import java.util.*; import javax.swing.*; class Foo<R extends Number> { public void doSomething(Number n, Map&l...
Flavescent asked 1/12, 2014 at 14:47

3

Solved

I am getting this name clash error and i don't know how should i solve the problem. I have two classes and i am using overloaded method "createSensors". To simplify here is the code that generates ...
Ghiselin asked 22/12, 2012 at 12:47

9

Solved

I have a problem with name hiding that is extremely hard to solve. Here is a simplified version that explains the problem: There is a class: org.A package org; public class A{ public class X{......
Strangury asked 4/7, 2014 at 10:25

2

Solved

For fun, I'm trying to implement a "MultiMap" collection, like what already exists in the Apache Commons library. I'm getting an interesting error with my "remove(K key, V value)" method. The compi...
Aguila asked 21/5, 2014 at 14:13

1

Solved

I had a function in a file harmonic.m in my matlab path with prototype: function D = harmonic(A,B,C) where, importantly, A is expected to be a matrix of type double. In version r2014a, apparent...
Neaten asked 2/5, 2014 at 19:51

2

Solved

I'm currently currently using the Cake Pattern to implement some optimization algorithms. I often hit name collision problems. For instance: trait Add[T] { this: Foo[T] => def constant: T def...
Kareykari asked 13/5, 2013 at 10:19

1

I'm distributing a shared library (C++) and a python module that uses this library. I build a modified version of Bullet Physics Library (as a CMake subproject). I only use Bullet classes and funct...
Wilinski asked 11/2, 2013 at 21:6

4

Solved

If two C++ files have different definitions of classes with the same name, then when they are compiled and linked, something is thrown out even without a warning. For example, // a.cc class Stude...
Erasmoerasmus asked 20/5, 2012 at 8:31

2

Solved

Consider: public interface Foo<T> { public static class X{} public void foobar(T t); } public class Bar<X> { Foo<X> foo = new Foo<X>() { public void foobar(X t) {} }...
Elba asked 21/1, 2012 at 16:51

3

Solved

Somewhat of an academic question, but I ran into this while writing some unit tests. My unit test framework (UnitTest++) allows you to create structs to serve as fixtures. Usually these are custom...
Snowinsummer asked 15/1, 2010 at 22:3

5

Solved

I have inherited a c# class 'Button' (which I can't change) which clashes with the BCL class 'Windows.Forms.Button'. Normally, Id be very happy to go: MyPackage.MyClass.Button; But there are a l...
Keever asked 6/10, 2008 at 13:16
1

© 2022 - 2024 — McMap. All rights reserved.