Anomalie #1243
Mis à jour par Anonyme il y a plus de 11 ans
Following file:
<pre>
import my.interfaces.AJavaInterface
import my.interfaces.AnotherJavaInterface
namespace a {
component A {
}
}
namespace simple.stuffs {
component MyBeautifulComponent {
provides portName: AJavaInterface
requires anotherPortName: AnotherJavaInterface
}
component MySimpleComponent {
provides p1: AnotherJavaInterface
}
component MyComplexComponent {
provides p1: AnotherJavaInterface
provides p2: AnotherJavaInterface = s.p1
requires p3: AnotherJavaInterface
part b1: MyBeautifulComponent {
bind anotherPortName to s.p1
}
part b2: MyBeautifulComponent {
bind anotherPortName to p1
}
part b3: MyBeautifulComponent {
bind anotherPortName to p3
}
part s: MySimpleComponent
}
// here
}
namespace simple.stuffs {
component ParameterisedComponent1[T extends Number] {
provides p1: java.util.concurrent.Callable[T]
provides p2: java.util.concurrent.Callable[String]
}
component ParameterisedComponent2[T1,T2 extends Number] {
part p1: ParameterisedComponent1[T2] {
}
part p2: ParameterisedComponent1[Integer] {
}
}
}
</pre>
typing component at the end of the simple.stuffs namespace raises a NPE it seems...
same thing for a species in an ecosystem...